summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;