mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
queue2: forward flush events correctly
We want to forward the flush events received on the sinkpad whenever the srcpad is activated in pushmode, which can also happen when using the RINGBUFFER or DOWNLOAD mode and downstream failed to activate us in pull mode.
This commit is contained in:
parent
67ccad0621
commit
f06458aabc
1 changed files with 2 additions and 2 deletions
|
@ -2139,7 +2139,7 @@ gst_queue2_handle_sink_event (GstPad * pad, GstEvent * event)
|
|||
case GST_EVENT_FLUSH_START:
|
||||
{
|
||||
GST_CAT_LOG_OBJECT (queue_dataflow, queue, "received flush start event");
|
||||
if (QUEUE_IS_USING_QUEUE (queue)) {
|
||||
if (pad->mode == GST_ACTIVATE_PUSH) {
|
||||
/* forward event */
|
||||
gst_pad_push_event (queue->srcpad, event);
|
||||
|
||||
|
@ -2171,7 +2171,7 @@ gst_queue2_handle_sink_event (GstPad * pad, GstEvent * event)
|
|||
{
|
||||
GST_CAT_LOG_OBJECT (queue_dataflow, queue, "received flush stop event");
|
||||
|
||||
if (QUEUE_IS_USING_QUEUE (queue)) {
|
||||
if (pad->mode == GST_ACTIVATE_PUSH) {
|
||||
/* forward event */
|
||||
gst_pad_push_event (queue->srcpad, event);
|
||||
|
||||
|
|
Loading…
Reference in a new issue