diff --git a/mixer.c b/mixer.c
index 6a3c54586c..e489b5a83e 100644
--- a/mixer.c
+++ b/mixer.c
@@ -45,7 +45,7 @@ void mixer_setvolume(mixer_t *mixer, float l, float r)
   vol.right=r; vol.left=l;
   if(mixer->audio_out){
     if(CONTROL_OK != mixer->audio_out->control(AOCONTROL_SET_VOLUME,&vol)) {
-      if (mixer->afilter)
+      if (!mixer->afilter)
         return;
       else {
         // af_volume uses values in dB