mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
basesink: Only answer the SEGMENT query in pull mode
Otherwise the element handling the seeks should answer this query. Fixes bug #623622.
This commit is contained in:
parent
e2db318921
commit
b2e7c4bd45
1 changed files with 7 additions and 4 deletions
|
@ -4741,10 +4741,13 @@ gst_base_sink_query (GstElement * element, GstQuery * query)
|
|||
break;
|
||||
case GST_QUERY_SEGMENT:
|
||||
{
|
||||
/* FIXME, bring start/stop to stream time */
|
||||
gst_query_set_segment (query, basesink->segment.rate,
|
||||
GST_FORMAT_TIME, basesink->segment.start, basesink->segment.stop);
|
||||
res = TRUE;
|
||||
if (basesink->pad_mode == GST_ACTIVATE_PULL) {
|
||||
gst_query_set_segment (query, basesink->segment.rate,
|
||||
GST_FORMAT_TIME, basesink->segment.start, basesink->segment.stop);
|
||||
res = TRUE;
|
||||
} else {
|
||||
res = gst_pad_peer_query (basesink->sinkpad, query);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GST_QUERY_SEEKING:
|
||||
|
|
Loading…
Reference in a new issue