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:
parent
bd70c73a8a
commit
a8604bc4f8
@ -709,7 +709,8 @@ gst_adaptive_demux_stream_get_presentation_offset (GstAdaptiveDemux * demux,
|
|||||||
|
|
||||||
klass = GST_ADAPTIVE_DEMUX_GET_CLASS (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);
|
return klass->get_presentation_offset (demux, stream);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user