ext/speex/gstspeexenc.c: Unref the buffers only once when handling not-negotiated...
authorOlivier Crete <tester@tester.ca>
Fri, 7 Mar 2008 12:40:18 +0000 (12:40 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 7 Mar 2008 12:40:18 +0000 (12:40 +0000)
Original commit message from CVS:
Patch by: Olivier Crete <tester at tester dot ca>
* ext/speex/gstspeexenc.c: (gst_speex_enc_chain):
Unref the buffers only once when handling not-negotiated errors.
Fixes bug #520764.

ChangeLog
ext/speex/gstspeexenc.c

index d34dea2..5f29fda 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-03-07  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       Patch by: Olivier Crete <tester at tester dot ca>
+
+       * ext/speex/gstspeexenc.c: (gst_speex_enc_chain):
+       Unref the buffers only once when handling not-negotiated errors.
+       Fixes bug #520764.
+
 2008-03-07  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        Patch by: Ole André Vadla Ravnås  <ole.andre.ravnas@tandberg.com>
index 647731f..dc14bee 100644 (file)
@@ -883,7 +883,6 @@ done:
   /* ERRORS */
 not_setup:
   {
-    gst_buffer_unref (buf);
     GST_ELEMENT_ERROR (enc, CORE, NEGOTIATION, (NULL),
         ("encoder not initialized (input is not audio?)"));
     ret = GST_FLOW_NOT_NEGOTIATED;