mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
adaptivedemux: Only answer the duration query in non-live mode
This commit is contained in:
parent
707b0ffcd6
commit
235506e912
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue