From ff9836e8aa8bd1eb9bc0b86ca901a5eb844d935b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 13 Apr 2002 17:17:59 +0000 Subject: [PATCH] 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 --- ext/mad/gstmad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index 5e98e5539d..aab672afc7 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -456,6 +456,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer) return; } /* recoverable errors pass */ + goto next; } /* calculate beginning of next frame */ @@ -544,6 +545,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer) } gst_pad_push (mad->srcpad, outbuffer); +next: /* figure out how many bytes mad consumed */ consumed = mad->stream.next_frame - mad_input_buffer;