summaryrefslogtreecommitdiffstats
path: root/audio/gstsbcenc.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-11-12 22:21:45 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-11-12 22:21:45 +0000
commitb1c42bfbbcabbb056820490500e78371ceda0818 (patch)
tree5ee2b5edb0236e66f2a391eec449d03e0d8ea01f /audio/gstsbcenc.c
parent397d6c2b3bc7661f978c1777442d33fd86ada21e (diff)
Fix bug in sbcenc when changing encoder parameters.
Diffstat (limited to 'audio/gstsbcenc.c')
-rw-r--r--audio/gstsbcenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/gstsbcenc.c b/audio/gstsbcenc.c
index e1c480a0..1749460d 100644
--- a/audio/gstsbcenc.c
+++ b/audio/gstsbcenc.c
@@ -215,6 +215,8 @@ gboolean gst_sbc_enc_fill_sbc_params(GstSbcEnc *enc, GstCaps *caps)
if (!(allocation = gst_structure_get_string(structure, "allocation")))
return FALSE;
+ sbc_finish(&enc->sbc);
+ sbc_init(&enc->sbc, 0);
enc->sbc.rate = rate;
enc->sbc.channels = channels;
enc->blocks = blocks;