mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 06:58:49 +00:00
opusdec: clear the state of the decoder
Set the channels and rate back to their default values in _stop because they are used to renegotiate when needed. See https://bugzilla.gnome.org/show_bug.cgi?id=692950
This commit is contained in:
parent
b28870150b
commit
6c4029357c
1 changed files with 2 additions and 2 deletions
|
@ -155,13 +155,13 @@ gst_opus_dec_reset (GstOpusDec * dec)
|
||||||
|
|
||||||
dec->pre_skip = 0;
|
dec->pre_skip = 0;
|
||||||
dec->r128_gain = 0;
|
dec->r128_gain = 0;
|
||||||
|
dec->sample_rate = 0;
|
||||||
|
dec->n_channels = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_opus_dec_init (GstOpusDec * dec)
|
gst_opus_dec_init (GstOpusDec * dec)
|
||||||
{
|
{
|
||||||
dec->sample_rate = 0;
|
|
||||||
dec->n_channels = 0;
|
|
||||||
dec->use_inband_fec = FALSE;
|
dec->use_inband_fec = FALSE;
|
||||||
dec->apply_gain = DEFAULT_APPLY_GAIN;
|
dec->apply_gain = DEFAULT_APPLY_GAIN;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue