]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwindows/interface.cpp
kind of begin fixing the mute button (at least it doesn't diplay the
[vlc] / 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();
     }
 }