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,
|
/* upstream needs to see fatal result ASAP to shut things down,
|
||||||
* but might be stuck in one of our other full queues;
|
* but might be stuck in one of our other full queues;
|
||||||
* so empty this one and trigger dynamic queue growth */
|
* so empty this one and trigger dynamic queue growth. At
|
||||||
if (sq->srcresult <= GST_FLOW_UNEXPECTED) {
|
* this point the srcresult is not OK, NOT_LINKED
|
||||||
gst_data_queue_flush (sq->queue);
|
* or UNEXPECTED, i.e. a real failure */
|
||||||
single_queue_underrun_cb (sq->queue, sq);
|
gst_data_queue_flush (sq->queue);
|
||||||
}
|
single_queue_underrun_cb (sq->queue, sq);
|
||||||
gst_data_queue_set_flushing (sq->queue, TRUE);
|
gst_data_queue_set_flushing (sq->queue, TRUE);
|
||||||
gst_pad_pause_task (sq->srcpad);
|
gst_pad_pause_task (sq->srcpad);
|
||||||
GST_CAT_LOG_OBJECT (multi_queue_debug, mq,
|
GST_CAT_LOG_OBJECT (multi_queue_debug, mq,
|
||||||
|
|
Loading…
Reference in a new issue