mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
elements: Stop using GST_FLOW_IS_FATAL()
This commit is contained in:
parent
2dfb0d2772
commit
2e6f80bf81
3 changed files with 5 additions and 7 deletions
|
@ -1123,7 +1123,7 @@ 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 */
|
||||||
if (GST_FLOW_IS_FATAL (sq->srcresult)) {
|
if (sq->srcresult <= GST_FLOW_UNEXPECTED) {
|
||||||
gst_data_queue_flush (sq->queue);
|
gst_data_queue_flush (sq->queue);
|
||||||
single_queue_underrun_cb (sq->queue, sq);
|
single_queue_underrun_cb (sq->queue, sq);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1234,8 +1234,7 @@ out_flushing:
|
||||||
GST_QUEUE_MUTEX_UNLOCK (queue);
|
GST_QUEUE_MUTEX_UNLOCK (queue);
|
||||||
/* let app know about us giving up if upstream is not expected to do so */
|
/* let app know about us giving up if upstream is not expected to do so */
|
||||||
/* UNEXPECTED is already taken care of elsewhere */
|
/* UNEXPECTED is already taken care of elsewhere */
|
||||||
if (eos && (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) &&
|
if (eos && (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED)) {
|
||||||
(ret != GST_FLOW_UNEXPECTED)) {
|
|
||||||
GST_ELEMENT_ERROR (queue, STREAM, FAILED,
|
GST_ELEMENT_ERROR (queue, STREAM, FAILED,
|
||||||
(_("Internal data flow error.")),
|
(_("Internal data flow error.")),
|
||||||
("streaming task paused, reason %s (%d)",
|
("streaming task paused, reason %s (%d)",
|
||||||
|
|
|
@ -2303,8 +2303,7 @@ out_flushing:
|
||||||
GST_QUEUE2_MUTEX_UNLOCK (queue);
|
GST_QUEUE2_MUTEX_UNLOCK (queue);
|
||||||
/* let app know about us giving up if upstream is not expected to do so */
|
/* let app know about us giving up if upstream is not expected to do so */
|
||||||
/* UNEXPECTED is already taken care of elsewhere */
|
/* UNEXPECTED is already taken care of elsewhere */
|
||||||
if (eos && (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) &&
|
if (eos && (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED)) {
|
||||||
(ret != GST_FLOW_UNEXPECTED)) {
|
|
||||||
GST_ELEMENT_ERROR (queue, STREAM, FAILED,
|
GST_ELEMENT_ERROR (queue, STREAM, FAILED,
|
||||||
(_("Internal data flow error.")),
|
(_("Internal data flow error.")),
|
||||||
("streaming task paused, reason %s (%d)",
|
("streaming task paused, reason %s (%d)",
|
||||||
|
|
Loading…
Reference in a new issue