summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_wasapi_utils.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2015-12-18 21:45:04 -0800
committerKevin Mitchell <kevmitch@gmail.com>2015-12-20 03:30:28 -0800
commit821e8fb9d04c593a041fae10876db9ffb1fe2ce2 (patch)
tree41790f7626de7cd3f7a0d84715292d0221fd3904 /audio/out/ao_wasapi_utils.c
parent4b81398b4e1d66fece109aaa1d5a7422462ceee5 (diff)
downloadmpv-821e8fb9d04c593a041fae10876db9ffb1fe2ce2.tar.bz2
mpv-821e8fb9d04c593a041fae10876db9ffb1fe2ce2.tar.xz
ao_wasapi: actually use hw volume support information for exclusive mode
Do not try and set/get master volume in exclusive if there is no hardware support. This would just uselessly change the master slider, but have no effect on the actual volume. Furthermore if getting hardware volume support information fails, then assume it has none.
Diffstat (limited to 'audio/out/ao_wasapi_utils.c')
-rwxr-xr-xaudio/out/ao_wasapi_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c
index 20729b2348..0dc78cfe35 100755
--- a/audio/out/ao_wasapi_utils.c
+++ b/audio/out/ao_wasapi_utils.c
@@ -1096,6 +1096,7 @@ retry: ;
if (hr != S_OK) {
MP_WARN(ao, "Error querying hardware volume control: %s\n",
mp_HRESULT_to_str(hr));
+ state->vol_hw_support = 0;
}
MP_DBG(ao, "Probing formats\n");