mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
tsdemux: Send DURATION query upstream first
This commit is contained in:
parent
20f9738c10
commit
ca0df16d52
1 changed files with 3 additions and 2 deletions
|
@ -395,8 +395,9 @@ gst_ts_demux_srcpad_query (GstPad * pad, GstQuery * query)
|
|||
GST_DEBUG ("query duration");
|
||||
gst_query_parse_duration (query, &format, NULL);
|
||||
if (format == GST_FORMAT_TIME) {
|
||||
gst_query_set_duration (query, GST_FORMAT_TIME,
|
||||
demux->segment.duration);
|
||||
if (!gst_pad_peer_query (pad, query))
|
||||
gst_query_set_duration (query, GST_FORMAT_TIME,
|
||||
demux->segment.duration);
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (demux, "only query duration on TIME is supported");
|
||||
res = FALSE;
|
||||
|
|
Loading…
Reference in a new issue