diff --git a/src/sound/sound.c b/src/sound/sound.c index 026a81cde..c50d002c6 100644 --- a/src/sound/sound.c +++ b/src/sound/sound.c @@ -386,7 +386,7 @@ sound_add_handler(void (*get_buffer)(int32_t *buffer, int len, void *p), void *p void sound_set_cd_audio_filter(void (*filter)(int channel, float *buffer, void *p), void *p) { - if ((filter_cd_audio != NULL) || (filter == NULL)) { + if ((filter_cd_audio == NULL) || (filter == NULL)) { filter_cd_audio = filter; filter_cd_audio_p = p; }