teletextdec: don't try to push an event on a pad that returned an error
authorAndoni Morales Alastruey <amorales@flumotion.com>
Thu, 10 Jun 2010 10:42:42 +0000 (12:42 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 23 May 2011 13:17:41 +0000 (15:17 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=619739

ext/teletextdec/gstteletextdec.c

index 74295c6..090990e 100644 (file)
@@ -692,7 +692,7 @@ error:
       GST_ELEMENT_ERROR (teletext, STREAM, FAILED,
           ("Internal data stream error."),
           ("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;
   }