speexdec: initialize stereo decoding state

This commit is contained in:
Mark Nauwelaerts 2010-02-01 19:22:24 +01:00
parent f0d6b841a2
commit c2eedfcceb

View file

@ -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);
}