summaryrefslogtreecommitdiffstats
path: root/audio/gstsbcenc.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-11-13 20:04:12 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-11-13 20:04:12 +0000
commit6d94a5b2e34c55611f2d6ea70c241971e65afc8c (patch)
tree2f5893ae395f1656a9e54869b02f2d441e462a31 /audio/gstsbcenc.c
parent1d85e2973463f7b194a4c31bd9c5954822cf3022 (diff)
Add sbc_reinit.
Diffstat (limited to 'audio/gstsbcenc.c')
-rw-r--r--audio/gstsbcenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/gstsbcenc.c b/audio/gstsbcenc.c
index 1749460d..54bb7f8a 100644
--- a/audio/gstsbcenc.c
+++ b/audio/gstsbcenc.c
@@ -215,8 +215,7 @@ 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);
+ sbc_reinit(&enc->sbc, 0);
enc->sbc.rate = rate;
enc->sbc.channels = channels;
enc->blocks = blocks;