From 827e2d13c1ab8eae451f55a0ce0da2a6565cef3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 23 May 2011 15:20:45 +0200 Subject: [PATCH] teletextdec: Don't use GST_FLOW_IS_FATAL() --- ext/teletextdec/gstteletextdec.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c index d7d5bffa7e..560406b146 100644 --- a/ext/teletextdec/gstteletextdec.c +++ b/ext/teletextdec/gstteletextdec.c @@ -729,10 +729,11 @@ gst_teletextdec_chain (GstPad * pad, GstBuffer * buf) /* ERRORS */ error: { - if (GST_FLOW_IS_FATAL (ret)) { + if (ret != GST_FLOW_OK && ret != GST_FLOW_NOT_LINKED + && ret != GST_FLOW_WRONG_STATE) { GST_ELEMENT_ERROR (teletext, STREAM, FAILED, - ("Internal data stream error."), - ("stream stopped, reason %s", gst_flow_get_name (ret))); + ("Internal data stream error."), ("stream stopped, reason %s", + gst_flow_get_name (ret))); return GST_FLOW_ERROR; } return ret; @@ -1054,7 +1055,7 @@ gst_teletextdec_push_preroll_buffer (GstTeletextDec * teletext) goto beach; } - buf = gst_buffer_new (); + buf = gst_buffer_new_and_alloc (1); GST_BUFFER_DATA (buf)[0] = 0; gst_buffer_set_caps (buf, out_caps); ret = gst_pad_push (teletext->srcpad, buf);