adaptivedemux: Only answer the duration query in non-live mode

This commit is contained in:
Sebastian Dröge 2015-04-26 19:08:00 +02:00
parent 707b0ffcd6
commit 235506e912

View file

@ -1105,7 +1105,8 @@ gst_adaptive_demux_src_query (GstPad * pad, GstObject * parent,
GST_MANIFEST_LOCK (demux);
gst_query_parse_duration (query, &fmt, NULL);
if (fmt == GST_FORMAT_TIME && demux->priv->have_manifest) {
if (fmt == GST_FORMAT_TIME && demux->priv->have_manifest
&& !gst_adaptive_demux_is_live (demux)) {
duration = demux_class->get_duration (demux);
if (GST_CLOCK_TIME_IS_VALID (duration) && duration > 0) {