From c2eedfcceb7a41eea1f256ecfa7bf95123282a5a Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 1 Feb 2010 19:22:24 +0100 Subject: [PATCH] speexdec: initialize stereo decoding state --- ext/speex/gstspeexdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c index d05618e67d..ad5736c065 100644 --- a/ext/speex/gstspeexdec.c +++ b/ext/speex/gstspeexdec.c @@ -537,6 +537,7 @@ speex_dec_chain_parse_header (GstSpeexDec * dec, GstBuffer * buf) dec->callback.callback_id = SPEEX_INBAND_STEREO; dec->callback.func = speex_std_stereo_request_handler; dec->callback.data = &dec->stereo; + dec->stereo = (SpeexStereoState) SPEEX_STEREO_STATE_INIT; speex_decoder_ctl (dec->state, SPEEX_SET_HANDLER, &dec->callback); }