[vlc-commits] wasapi: flawed logic (probably fix #7030)

Rémi Denis-Courmont git at videolan.org
Sat Jun 30 13:14:13 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 30 14:13:30 2012 +0300| [a106407a04308844b833807495f6bd1180d4013a] | committer: Rémi Denis-Courmont

wasapi: flawed logic (probably fix #7030)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a106407a04308844b833807495f6bd1180d4013a
---

 modules/audio_output/wasapi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index b7def36..fb82172 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -200,7 +200,7 @@ static int SimpleVolumeSet(audio_output_t *aout, float vol, bool mute)
     if (FAILED(hr))
         msg_Warn(aout, "cannot set session volume (error 0x%lx)", hr);
 
-    if (mute)
+    if (!mute)
     {
         hr = ISimpleAudioVolume_SetMute(sys->volume.simple, false, NULL);
         if (FAILED(hr))



More information about the vlc-commits mailing list