diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-11-12 22:21:45 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-03-27 22:21:15 +0000 |
commit | 946d5642925cd35b02946911aa98ed6fa2d6889a (patch) | |
tree | 1a257971fcc4846b261cf7bd184a2b0ba19a8364 /ext/sbc/gstsbcenc.c | |
parent | 97fcf537cd70a17777ea197dd1ccdfbc2227994d (diff) | |
download | gstreamer-plugins-bad-946d5642925cd35b02946911aa98ed6fa2d6889a.tar.gz |
sbc: Fix bug in sbcenc when changing encoder parameters.
Diffstat (limited to 'ext/sbc/gstsbcenc.c')
-rw-r--r-- | ext/sbc/gstsbcenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/sbc/gstsbcenc.c b/ext/sbc/gstsbcenc.c index 2558fd1d0..45bc7213d 100644 --- a/ext/sbc/gstsbcenc.c +++ b/ext/sbc/gstsbcenc.c @@ -218,6 +218,8 @@ 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; |