]> git.sesse.net Git - vlc/commitdiff
aout: correct test before applying volume
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 4 Aug 2011 16:34:24 +0000 (19:34 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 4 Aug 2011 16:34:24 +0000 (19:34 +0300)
src/audio_output/intf.c

index 8d9190b73a7e16c87726d6c602edce86b6797164..bb4c4ed63533f47148994ddc812fbcc812025f9c 100644 (file)
@@ -90,8 +90,7 @@ static int commitVolume (vlc_object_t *obj, audio_output_t *aout,
         float vol = volume / (float)AOUT_VOLUME_DEFAULT;
 
         aout_lock (aout);
-#warning FIXME: wrong test. Need to check that aout_output is ready.
-        if (owner->volume.mixer != NULL)
+        if (owner->module != NULL)
             ret = aout->pf_volume_set (aout, vol, mute);
         aout_unlock (aout);