mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
multiqueue: Flush the data queue if downstream return WRONG_STATE too
This commit is contained in:
parent
2e6f80bf81
commit
8035f13bbf
1 changed files with 5 additions and 5 deletions
|
@ -1122,11 +1122,11 @@ out_flushing:
|
|||
|
||||
/* upstream needs to see fatal result ASAP to shut things down,
|
||||
* but might be stuck in one of our other full queues;
|
||||
* so empty this one and trigger dynamic queue growth */
|
||||
if (sq->srcresult <= GST_FLOW_UNEXPECTED) {
|
||||
gst_data_queue_flush (sq->queue);
|
||||
single_queue_underrun_cb (sq->queue, sq);
|
||||
}
|
||||
* so empty this one and trigger dynamic queue growth. At
|
||||
* this point the srcresult is not OK, NOT_LINKED
|
||||
* or UNEXPECTED, i.e. a real failure */
|
||||
gst_data_queue_flush (sq->queue);
|
||||
single_queue_underrun_cb (sq->queue, sq);
|
||||
gst_data_queue_set_flushing (sq->queue, TRUE);
|
||||
gst_pad_pause_task (sq->srcpad);
|
||||
GST_CAT_LOG_OBJECT (multi_queue_debug, mq,
|
||||
|
|
Loading…
Reference in a new issue