ext/ffmpeg/gstffmpegdec.c: Memleak fix.
authorEdward Hervey <bilboed@bilboed.com>
Tue, 17 Jan 2006 09:24:40 +0000 (09:24 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 17 Jan 2006 09:24:40 +0000 (09:24 +0000)
Original commit message from CVS:
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_chain):
Memleak fix.
Closes #326704

ChangeLog
ext/ffmpeg/gstffmpegdec.c

index 4fed4eb..7e1319c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2006-01-17  Edward Hervey  <edward@fluendo.com>
 
+       * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_chain):
+       Memleak fix.
+       Closes #326704
+
+2006-01-17  Edward Hervey  <edward@fluendo.com>
+
        * configure.ac:
        Add --with-pkg-config-path argument.
        Closes #319248
index b1b81d7..3270b6d 100644 (file)
@@ -1144,8 +1144,9 @@ gst_ffmpegdec_chain (GstPad * pad, GstBuffer * inbuf)
 
   /* parse cache joining */
   if (ffmpegdec->pcache) {
-    inbuf = gst_buffer_span (ffmpegdec->pcache, 0, inbuf,
-        GST_BUFFER_SIZE (ffmpegdec->pcache) + GST_BUFFER_SIZE (inbuf));
+    inbuf = gst_buffer_join (ffmpegdec->pcache, inbuf);
+/*     inbuf = gst_buffer_span (ffmpegdec->pcache, 0, inbuf, */
+/*         GST_BUFFER_SIZE (ffmpegdec->pcache) + GST_BUFFER_SIZE (inbuf)); */
     ffmpegdec->pcache = NULL;
     bdata = GST_BUFFER_DATA (inbuf);
     bsize = GST_BUFFER_SIZE (inbuf);