mp3parse: propagate flow errors upstream.
authorAlessandro Decina <alessandro.decina@collabora.co.uk>
Wed, 25 Aug 2010 13:39:33 +0000 (15:39 +0200)
committerAlessandro Decina <alessandro.decina@collabora.co.uk>
Wed, 25 Aug 2010 13:39:33 +0000 (15:39 +0200)
Remove a wrong GST_FLOW_IS_FATAL call. When pushing fails, mp3parse should
always return the error upstream.

gst/mpegaudioparse/gstmpegaudioparse.c

index aed15d6..be23540 100644 (file)
@@ -1527,7 +1527,7 @@ gst_mp3parse_handle_data (GstMPEGAudioParse * mp3parse, gboolean at_eos)
     if (!mp3parse->skip) {
       mp3parse->resyncing = FALSE;
       flow = gst_mp3parse_emit_frame (mp3parse, bpf, mode, crc);
-      if (GST_FLOW_IS_FATAL (flow))
+      if (flow != GST_FLOW_OK)
         break;
     } else {
       GST_DEBUG_OBJECT (mp3parse, "skipping buffer of %d bytes", bpf);