mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
teletextdec: Don't use GST_FLOW_IS_FATAL()
This commit is contained in:
parent
81134554db
commit
827e2d13c1
1 changed files with 5 additions and 4 deletions
|
@ -729,10 +729,11 @@ gst_teletextdec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error:
|
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,
|
GST_ELEMENT_ERROR (teletext, STREAM, FAILED,
|
||||||
("Internal data stream error."),
|
("Internal data stream error."), ("stream stopped, reason %s",
|
||||||
("stream stopped, reason %s", gst_flow_get_name (ret)));
|
gst_flow_get_name (ret)));
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -1054,7 +1055,7 @@ gst_teletextdec_push_preroll_buffer (GstTeletextDec * teletext)
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = gst_buffer_new ();
|
buf = gst_buffer_new_and_alloc (1);
|
||||||
GST_BUFFER_DATA (buf)[0] = 0;
|
GST_BUFFER_DATA (buf)[0] = 0;
|
||||||
gst_buffer_set_caps (buf, out_caps);
|
gst_buffer_set_caps (buf, out_caps);
|
||||||
ret = gst_pad_push (teletext->srcpad, buf);
|
ret = gst_pad_push (teletext->srcpad, buf);
|
||||||
|
|
Loading…
Reference in a new issue