mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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)
This commit is contained in:
parent
9b9f3098b3
commit
8285dfd7a2
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-02-05 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
|
* gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_chain):
|
||||||
|
Unref leaked buffer. (Noticed by Ronald)
|
||||||
|
|
||||||
2004-02-05 David I. Lehn <dlehn@users.sourceforge.net>
|
2004-02-05 David I. Lehn <dlehn@users.sourceforge.net>
|
||||||
|
|
||||||
* pkgconfig/gstreamer-libs-uninstalled.pc.in:
|
* pkgconfig/gstreamer-libs-uninstalled.pc.in:
|
||||||
|
|
|
@ -316,10 +316,13 @@ gst_mp3parse_chain (GstPad *pad, GstData *_data)
|
||||||
|
|
||||||
/* if we have something left from the previous frame */
|
/* if we have something left from the previous frame */
|
||||||
if (mp3parse->partialbuf) {
|
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.. */
|
/* and the one we received.. */
|
||||||
gst_buffer_unref(buf);
|
gst_buffer_unref(buf);
|
||||||
|
gst_buffer_unref(mp3parse->partialbuf);
|
||||||
|
mp3parse->partialbuf = newbuf;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mp3parse->partialbuf = buf;
|
mp3parse->partialbuf = buf;
|
||||||
|
|
Loading…
Reference in a new issue