teletextdec: don't try to push an event on a pad that returned an error

https://bugzilla.gnome.org/show_bug.cgi?id=619739
This commit is contained in:
Andoni Morales Alastruey 2010-06-10 12:42:42 +02:00 committed by Sebastian Dröge
parent 8bb6ff414f
commit afd240c621

View file

@ -692,7 +692,7 @@ error:
GST_ELEMENT_ERROR (teletext, STREAM, FAILED, GST_ELEMENT_ERROR (teletext, STREAM, FAILED,
("Internal data stream error."), ("Internal data stream error."),
("stream stopped, reason %s", gst_flow_get_name (ret))); ("stream stopped, reason %s", gst_flow_get_name (ret)));
gst_pad_push_event (teletext->srcpad, gst_event_new_eos ()); return GST_FLOW_ERROR;
} }
return ret; return ret;
} }