ext/wavpack/gstwavpackdec.c: Don't unref the outgoing buffer twice when dropping...
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 24 Jul 2007 05:07:59 +0000 (05:07 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 24 Jul 2007 05:07:59 +0000 (05:07 +0000)
Original commit message from CVS:
* ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_chain):
Don't unref the outgoing buffer twice when dropping it because it's
outside of the segment.

ChangeLog
ext/wavpack/gstwavpackdec.c

index 9ba8ca1..ba17903 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-07-24  Sebastian Dröge  <slomo@circular-chaos.org>
 
+       * ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_chain):
+       Don't unref the outgoing buffer twice when dropping it because it's
+       outside of the segment.
+
+2007-07-24  Sebastian Dröge  <slomo@circular-chaos.org>
+
        * configure.ac:
        * ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_reset),
        (gst_wavpack_dec_chain), (gst_wavpack_dec_sink_event):
index 7ed14c4..c4aa1d0 100644 (file)
@@ -339,8 +339,6 @@ gst_wavpack_dec_chain (GstPad * pad, GstBuffer * buf)
     GST_LOG_OBJECT (dec, "pushing buffer with time %" GST_TIME_FORMAT,
         GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (outbuf)));
     ret = gst_pad_push (dec->srcpad, outbuf);
-  } else {
-    gst_buffer_unref (outbuf);
   }
 
 out: