adaptivedemux: call the subclass for duration queries for live sources
authorMatthew Waters <matthew@centricular.com>
Wed, 9 Nov 2016 10:18:06 +0000 (21:18 +1100)
committerMatthew Waters <matthew@centricular.com>
Thu, 10 Nov 2016 13:11:25 +0000 (00:11 +1100)
Otherwise, the duration query was failing for live sources

https://bugzilla.gnome.org/show_bug.cgi?id=774177

gst-libs/gst/adaptivedemux/gstadaptivedemux.c

index 3210ae7..734e059 100644 (file)
@@ -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) {