mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
baseparse: Don't use GST_FLOW_IS_FATAL()
Also don't post an error message for UNEXPECTED and do it for NOT_LINKED.
This commit is contained in:
parent
08e8dbf027
commit
f3f338f14a
1 changed files with 3 additions and 1 deletions
|
@ -1493,7 +1493,9 @@ gst_base_parse_loop (GstPad * pad)
|
|||
|
||||
if (ret != GST_FLOW_OK) {
|
||||
GST_DEBUG_OBJECT (parse, "flow: %s", gst_flow_get_name (ret));
|
||||
if (GST_FLOW_IS_FATAL (ret)) {
|
||||
if (ret == GST_FLOW_UNEXPECTED) {
|
||||
gst_pad_push_event (parse->srcpad, gst_event_new_eos ());
|
||||
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) {
|
||||
GST_ELEMENT_ERROR (parse, STREAM, FAILED, (NULL),
|
||||
("streaming task paused, reason: %s", gst_flow_get_name (ret)));
|
||||
gst_pad_push_event (parse->srcpad, gst_event_new_eos ());
|
||||
|
|
Loading…
Reference in a new issue