summaryrefslogtreecommitdiff
path: root/ext/teletextdec
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2011-05-23 15:20:45 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-05-23 15:24:12 +0200
commit827e2d13c1ab8eae451f55a0ce0da2a6565cef3f (patch)
treef2fc5e114d1e3dc1860c59972eb8cbaac4016d27 /ext/teletextdec
parent81134554dbbb4493631b571e2364d78ebb8598da (diff)
downloadgstreamer-plugins-bad-827e2d13c1ab8eae451f55a0ce0da2a6565cef3f.tar.gz
teletextdec: Don't use GST_FLOW_IS_FATAL()
Diffstat (limited to 'ext/teletextdec')
-rw-r--r--ext/teletextdec/gstteletextdec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c
index d7d5bffa7..560406b14 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);