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:
Sebastian Dröge 2010-08-27 18:35:10 +02:00 committed by Tim-Philipp Müller
parent 08e8dbf027
commit f3f338f14a

View file

@ -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 ());