mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
sbc: Fix bug in sbcenc when changing encoder parameters.
This commit is contained in:
parent
97fcf537cd
commit
946d564292
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue