Bug 901527: null pointer when resetting a resampler r=roc

This commit is contained in:
Randell Jesup 2013-08-07 01:36:03 -04:00
parent b2b84cb2fb
commit 96ed08b655

View File

@ -74,6 +74,7 @@ int Resampler::Reset(int in_freq, int out_freq, ResamplerType type)
if (state_)
{
speex_resampler_destroy(state_);
state_ = NULL;
}
type_ = type;
channels_ = channels;