From 7f9ddba043f5d13378bf512d72880020044e5d17 Mon Sep 17 00:00:00 2001 From: Olivier Crete Date: Fri, 7 Mar 2008 12:40:18 +0000 Subject: ext/speex/gstspeexenc.c: Unref the buffers only once when handling not-negotiated errors. Original commit message from CVS: Patch by: Olivier Crete * ext/speex/gstspeexenc.c: (gst_speex_enc_chain): Unref the buffers only once when handling not-negotiated errors. Fixes bug #520764. --- ChangeLog | 8 ++++++++ ext/speex/gstspeexenc.c | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d34dea25..5f29fda1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-03-07 Sebastian Dröge + + Patch by: Olivier Crete + + * 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 Patch by: Ole André Vadla Ravnås diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c index 647731f2..dc14beec 100644 --- a/ext/speex/gstspeexenc.c +++ b/ext/speex/gstspeexenc.c @@ -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; -- cgit