From 8df3c8477a75bdda158f53ee04a502db424f3932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 27 Aug 2010 18:35:10 +0200 Subject: [PATCH] baseparse: Don't use GST_FLOW_IS_FATAL() Also don't post an error message for UNEXPECTED and do it for NOT_LINKED. --- gst/audioparsers/gstbaseparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/audioparsers/gstbaseparse.c b/gst/audioparsers/gstbaseparse.c index ff109942da..8c7a722e86 100644 --- a/gst/audioparsers/gstbaseparse.c +++ b/gst/audioparsers/gstbaseparse.c @@ -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 ());