diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 77dc4df23..57e33e6f5 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -558,9 +558,9 @@ int SDL_SetAudioStreamFormat(SDL_AudioStream *stream, const SDL_AudioSpec *src_s // quietly refuse to change the format of the end currently bound to a device. if (stream->bound_device) { if (stream->bound_device->physical_device->iscapture) { - dst_spec = NULL; - } else { src_spec = NULL; + } else { + dst_spec = NULL; } }