mp3parse: propagate flow errors upstream.

Remove a wrong GST_FLOW_IS_FATAL call. When pushing fails, mp3parse should
always return the error upstream.
This commit is contained in:
Alessandro Decina 2010-08-25 15:39:33 +02:00
parent 49c2fdd4f9
commit 2ca354e3ab

View 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);