From a8604bc4f8694fcf32295193e71b5d7f32052f86 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 10 Mar 2015 15:31:21 +0100 Subject: [PATCH] adaptivedemux: fix get_presentation_offset check. And return 0 isntead of FALSE. https://bugzilla.gnome.org/show_bug.cgi?id=745455 --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index e06c14bc37..28b7401f79 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -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); }