Don't try to continue parsing stuff after an error but skip the junk

Original commit message from CVS:
Don't try to continue parsing stuff after an error but skip the junk
This commit is contained in:
Wim Taymans 2002-04-13 17:17:59 +00:00
parent 66776ccfa7
commit ff9836e8aa

View file

@ -456,6 +456,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer)
return; return;
} }
/* recoverable errors pass */ /* recoverable errors pass */
goto next;
} }
/* calculate beginning of next frame */ /* calculate beginning of next frame */
@ -544,6 +545,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer)
} }
gst_pad_push (mad->srcpad, outbuffer); gst_pad_push (mad->srcpad, outbuffer);
next:
/* figure out how many bytes mad consumed */ /* figure out how many bytes mad consumed */
consumed = mad->stream.next_frame - mad_input_buffer; consumed = mad->stream.next_frame - mad_input_buffer;