projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b0c8a0
)
opusdec: clear the state of the decoder
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 11 Feb 2013 10:06:32 +0000
(11:06 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 11 Feb 2013 10:12:35 +0000
(11:12 +0100)
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
ext/opus/gstopusdec.c
patch
|
blob
|
history
diff --git
a/ext/opus/gstopusdec.c
b/ext/opus/gstopusdec.c
index
5b4a156
..
456cc62
100644
(file)
--- 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;