mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
tsdemux: First send SEEKING queries upstream
This commit is contained in:
parent
ca0df16d52
commit
a27b7b6712
1 changed files with 11 additions and 3 deletions
|
@ -407,9 +407,17 @@ gst_ts_demux_srcpad_query (GstPad * pad, GstQuery * query)
|
||||||
GST_DEBUG ("query seeking");
|
GST_DEBUG ("query seeking");
|
||||||
gst_query_parse_seeking (query, &format, NULL, NULL, NULL);
|
gst_query_parse_seeking (query, &format, NULL, NULL, NULL);
|
||||||
if (format == GST_FORMAT_TIME) {
|
if (format == GST_FORMAT_TIME) {
|
||||||
gst_query_set_seeking (query, GST_FORMAT_TIME,
|
gboolean seekable = FALSE;
|
||||||
demux->parent.mode != BASE_MODE_PUSHING, 0,
|
|
||||||
demux->segment.duration);
|
if (gst_pad_peer_query (pad, query))
|
||||||
|
gst_query_parse_seeking (query, NULL, &seekable, NULL, NULL);
|
||||||
|
|
||||||
|
/* If upstream is not seekable in TIME format we use
|
||||||
|
* our own values here */
|
||||||
|
if (!seekable)
|
||||||
|
gst_query_set_seeking (query, GST_FORMAT_TIME,
|
||||||
|
demux->parent.mode != BASE_MODE_PUSHING, 0,
|
||||||
|
demux->segment.duration);
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (demux, "only TIME is supported for query seeking");
|
GST_DEBUG_OBJECT (demux, "only TIME is supported for query seeking");
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue