adaptivedemux: fix get_presentation_offset check.

And return 0 isntead of FALSE.

https://bugzilla.gnome.org/show_bug.cgi?id=745455
This commit is contained in:
Mathieu Duponchelle 2015-03-10 15:31:21 +01:00
parent bd70c73a8a
commit a8604bc4f8

View file

@ -709,7 +709,8 @@ gst_adaptive_demux_stream_get_presentation_offset (GstAdaptiveDemux * demux,
klass = GST_ADAPTIVE_DEMUX_GET_CLASS (demux);
g_return_val_if_fail (klass->get_presentation_offset, FALSE);
if (klass->get_presentation_offset == NULL)
return 0;
return klass->get_presentation_offset (demux, stream);
}