diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2016-01-04 18:09:03 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2016-01-05 17:47:55 -0800 |
commit | 8368ead1fa279e84012eaffcad321bb3cd1ed166 (patch) | |
tree | 4bbfc04580548dbe050b156060cb7734d730df2a /audio/out/ao_wasapi.c | |
parent | d22d24a6d53abdeac32e13317a78c0b905769185 (diff) | |
download | mpv-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.c | 3 |
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; } |