]> git.sesse.net Git - vlc/commitdiff
kind of begin fixing the mute button (at least it doesn't diplay the
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 14 May 2005 20:12:21 +0000 (20:12 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 14 May 2005 20:12:21 +0000 (20:12 +0000)
mute icon when sound isn't mute now). Rels #106

modules/gui/wxwindows/interface.cpp

index fec9e36736a9bb25a8eaa0b0eedddadd6f4ab467..c43160ce5d277851e93db1517290741fd203f42d 100644 (file)
@@ -1445,8 +1445,9 @@ void VLCVolCtrl::OnChange( wxMouseEvent& event )
     {
         int i_volume;
         aout_VolumeMute( p_intf, (audio_volume_t *)&i_volume );
-
-        b_mute = !b_mute;
+        i_volume = (audio_volume_t)config_GetInt( p_intf, "volume" );
+        if( i_volume == 0 ) b_mute = 1;
+        else b_mute=0;
         Refresh();
     }
 }