mirror of https://github.com/encounter/SDL.git
audio: Don't call a NULL function pointer when clearing audio streams.
(Partially?) fixes Bugzilla #3547.
This commit is contained in:
parent
c1ac4c6835
commit
c5825b698d
|
@ -998,9 +998,11 @@ SDL_AudioStreamClear(SDL_AudioStream *stream)
|
||||||
SDL_InvalidParamError("stream");
|
SDL_InvalidParamError("stream");
|
||||||
} else {
|
} else {
|
||||||
SDL_ClearDataQueue(stream->queue, stream->packetlen * 2);
|
SDL_ClearDataQueue(stream->queue, stream->packetlen * 2);
|
||||||
|
if (stream->reset_resampler_func) {
|
||||||
stream->reset_resampler_func(stream);
|
stream->reset_resampler_func(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* get converted/resampled data from the stream */
|
/* get converted/resampled data from the stream */
|
||||||
|
|
Loading…
Reference in New Issue