mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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
7831661c40
commit
8df3c8477a
1 changed files with 3 additions and 1 deletions
|
@ -1493,7 +1493,9 @@ gst_base_parse_loop (GstPad * pad)
|
||||||
|
|
||||||
if (ret != GST_FLOW_OK) {
|
if (ret != GST_FLOW_OK) {
|
||||||
GST_DEBUG_OBJECT (parse, "flow: %s", gst_flow_get_name (ret));
|
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),
|
GST_ELEMENT_ERROR (parse, STREAM, FAILED, (NULL),
|
||||||
("streaming task paused, reason: %s", gst_flow_get_name (ret)));
|
("streaming task paused, reason: %s", gst_flow_get_name (ret)));
|
||||||
gst_pad_push_event (parse->srcpad, gst_event_new_eos ());
|
gst_pad_push_event (parse->srcpad, gst_event_new_eos ());
|
||||||
|
|
Loading…
Reference in a new issue