summaryrefslogtreecommitdiffstats
path: root/gst/mpegaudioparse
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2004-02-05 22:24:58 +0000
committerDavid Schleef <ds@schleef.org>2004-02-05 22:24:58 +0000
commit8285dfd7a2777fe33c5c8cf71cd2230a3a71ca1f (patch)
tree899d0eaae3b86715b45ea26047df906e733b5f8d /gst/mpegaudioparse
parent9b9f3098b3392ee96573a0767b61622013c43a86 (diff)
downloadgst-plugins-bad-8285dfd7a2777fe33c5c8cf71cd2230a3a71ca1f.tar.gz
gst-plugins-bad-8285dfd7a2777fe33c5c8cf71cd2230a3a71ca1f.tar.bz2
gst-plugins-bad-8285dfd7a2777fe33c5c8cf71cd2230a3a71ca1f.zip
gst/mpegaudioparse/gstmpegaudioparse.c: Unref leaked buffer. (Noticed by Ronald)
Original commit message from CVS: * gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_chain): Unref leaked buffer. (Noticed by Ronald)
Diffstat (limited to 'gst/mpegaudioparse')
-rw-r--r--gst/mpegaudioparse/gstmpegaudioparse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c
index f00e5bcb..aeed48f1 100644
--- a/gst/mpegaudioparse/gstmpegaudioparse.c
+++ b/gst/mpegaudioparse/gstmpegaudioparse.c
@@ -316,10 +316,13 @@ gst_mp3parse_chain (GstPad *pad, GstData *_data)
/* if we have something left from the previous frame */
if (mp3parse->partialbuf) {
+ GstBuffer *newbuf;
- mp3parse->partialbuf = gst_buffer_merge(mp3parse->partialbuf, buf);
+ newbuf = gst_buffer_merge(mp3parse->partialbuf, buf);
/* and the one we received.. */
gst_buffer_unref(buf);
+ gst_buffer_unref(mp3parse->partialbuf);
+ mp3parse->partialbuf = newbuf;
}
else {
mp3parse->partialbuf = buf;