From 6d50a9e8a86e9154c8c6116db9c7dc0860a4691d Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 9 Nov 2016 21:18:06 +1100 Subject: [PATCH] adaptivedemux: call the subclass for duration queries for live sources Otherwise, the duration query was failing for live sources https://bugzilla.gnome.org/show_bug.cgi?id=774177 --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 3210ae7b81..734e05993b 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -1619,8 +1619,7 @@ gst_adaptive_demux_src_query (GstPad * pad, GstObject * parent, GST_MANIFEST_LOCK (demux); - if (fmt == GST_FORMAT_TIME && demux->priv->have_manifest - && !gst_adaptive_demux_is_live (demux)) { + if (fmt == GST_FORMAT_TIME && demux->priv->have_manifest) { duration = demux_class->get_duration (demux); if (GST_CLOCK_TIME_IS_VALID (duration) && duration > 0) {