diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-11-12 22:21:45 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-11-12 22:21:45 +0000 |
commit | b1c42bfbbcabbb056820490500e78371ceda0818 (patch) | |
tree | 5ee2b5edb0236e66f2a391eec449d03e0d8ea01f | |
parent | 397d6c2b3bc7661f978c1777442d33fd86ada21e (diff) |
Fix bug in sbcenc when changing encoder parameters.
-rw-r--r-- | audio/gstsbcenc.c | 2 |
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; |