diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2013-02-11 11:06:32 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2013-02-11 11:12:35 +0100 |
commit | 70ac2717a9eebc334d4e3b6952c9972976c623c6 (patch) | |
tree | a7b6705820b21505cb4266ce3e8a6ec5c354e750 | |
parent | 4b0c8a07da5f05b8132beac1e240c14424db1913 (diff) | |
download | gstreamer-plugins-base-70ac2717a9eebc334d4e3b6952c9972976c623c6.tar.gz |
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
-rw-r--r-- | ext/opus/gstopusdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 5b4a15686..456cc624b 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -155,13 +155,13 @@ gst_opus_dec_reset (GstOpusDec * dec) dec->pre_skip = 0; dec->r128_gain = 0; + dec->sample_rate = 0; + dec->n_channels = 0; } static void gst_opus_dec_init (GstOpusDec * dec) { - dec->sample_rate = 0; - dec->n_channels = 0; dec->use_inband_fec = FALSE; dec->apply_gain = DEFAULT_APPLY_GAIN; |