mirror of
https://github.com/yawut/SDL.git
synced 2026-07-01 00:39:58 -05:00
audio: Don't call a NULL function pointer when clearing audio streams.
(Partially?) fixes Bugzilla #3547.
This commit is contained in:
parent
451164092d
commit
5691f0a47e
|
|
@ -998,7 +998,9 @@ SDL_AudioStreamClear(SDL_AudioStream *stream)
|
|||
SDL_InvalidParamError("stream");
|
||||
} else {
|
||||
SDL_ClearDataQueue(stream->queue, stream->packetlen * 2);
|
||||
stream->reset_resampler_func(stream);
|
||||
if (stream->reset_resampler_func) {
|
||||
stream->reset_resampler_func(stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user