mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
queue2: Forward the schedule query upstream
When asked about the scheduling flags first check with upstream and simply add the _SEEKABLE flag when using a temporary file as storage. This enables the forwarding of _SEQUENTIAL and _BANDWIDTH_LIMITED from sources if needed. https://bugzilla.gnome.org/show_bug.cgi?id=704927
This commit is contained in:
parent
2ee414c1c1
commit
7f8fb3861e
1 changed files with 5 additions and 0 deletions
|
@ -2941,6 +2941,11 @@ gst_queue2_handle_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
gboolean pull_mode;
|
||||
GstSchedulingFlags flags = 0;
|
||||
|
||||
if (!gst_pad_peer_query (queue->sinkpad, query))
|
||||
goto peer_failed;
|
||||
|
||||
gst_query_parse_scheduling (query, &flags, NULL, NULL, NULL);
|
||||
|
||||
/* we can operate in pull mode when we are using a tempfile */
|
||||
pull_mode = !QUEUE_IS_USING_QUEUE (queue);
|
||||
|
||||
|
|
Loading…
Reference in a new issue