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;