summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_wasapi.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-01-04 18:09:03 -0800
committerKevin Mitchell <kevmitch@gmail.com>2016-01-05 17:47:55 -0800
commit8368ead1fa279e84012eaffcad321bb3cd1ed166 (patch)
tree4bbfc04580548dbe050b156060cb7734d730df2a /audio/out/ao_wasapi.c
parentd22d24a6d53abdeac32e13317a78c0b905769185 (diff)
downloadmpv-8368ead1fa279e84012eaffcad321bb3cd1ed166.tar.bz2
mpv-8368ead1fa279e84012eaffcad321bb3cd1ed166.tar.xz
ao_wasapi: make find_deviceID read only wrt struct ao
This makes it clearer that state->device is being allocated.
Diffstat (limited to 'audio/out/ao_wasapi.c')
-rw-r--r--audio/out/ao_wasapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c
index 9f8a3fedd7..e6f1c32662 100644
--- a/audio/out/ao_wasapi.c
+++ b/audio/out/ao_wasapi.c
@@ -286,7 +286,8 @@ static int init(struct ao *ao)
struct wasapi_state *state = ao->priv;
state->log = ao->log;
- if (!find_device(ao)) {
+ state->deviceID = find_deviceID(ao);
+ if (!state->deviceID) {
uninit(ao);
return -1;
}