Commit a106407a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

wasapi: flawed logic (probably fix #7030)

parent c5f6aef2
...@@ -200,7 +200,7 @@ static int SimpleVolumeSet(audio_output_t *aout, float vol, bool mute) ...@@ -200,7 +200,7 @@ static int SimpleVolumeSet(audio_output_t *aout, float vol, bool mute)
if (FAILED(hr)) if (FAILED(hr))
msg_Warn(aout, "cannot set session volume (error 0x%lx)", hr); msg_Warn(aout, "cannot set session volume (error 0x%lx)", hr);
if (mute) if (!mute)
{ {
hr = ISimpleAudioVolume_SetMute(sys->volume.simple, false, NULL); hr = ISimpleAudioVolume_SetMute(sys->volume.simple, false, NULL);
if (FAILED(hr)) if (FAILED(hr))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment