From: Mark Nauwelaerts Date: Tue, 21 Feb 2012 17:49:50 +0000 (+0100) Subject: mad: fixup unhacking last frame coaxing X-Git-Tag: 1.19.3~505^2~818^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dead1c4007af753bb2895e9c44b2582b0b3ec3a;p=platform%2Fupstream%2Fgstreamer.git mad: fixup unhacking last frame coaxing ... so as to not only replace the data pointer but also available size. --- diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index 9b5f597..cd3d068 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -300,10 +300,11 @@ gst_mad_parse (GstAudioDecoder * dec, GstAdapter * adapter, /* let's be nice and not mess with baseclass state and keep hacks local */ memset (GST_BUFFER_DATA (guard), 0, GST_BUFFER_SIZE (guard)); memcpy (GST_BUFFER_DATA (guard), data, av); - GST_DEBUG_OBJECT (mad, "Added %u zero guard bytes in the adapter; " + GST_DEBUG_OBJECT (mad, "added %u zero guard bytes in the adapter; " "using fallback buffer of size %u", GST_BUFFER_SIZE (guard) - av, GST_BUFFER_SIZE (guard)); data = GST_BUFFER_DATA (guard); + av = GST_BUFFER_SIZE (guard); } /* we basically let mad library do parsing,