diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index a4fcd1110..989259ca1 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -1129,7 +1129,7 @@ open_audio_device(const char *devname, int iscapture, const SDL_AudioSpec * desired, SDL_AudioSpec * obtained, int allowed_changes, int min_id) { - const SDL_bool is_internal_thread = (desired->callback != NULL); + const SDL_bool is_internal_thread = (desired->callback == NULL); SDL_AudioDeviceID id = 0; SDL_AudioSpec _obtained; SDL_AudioDevice *device;