diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2016-01-22 05:16:48 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2016-01-28 00:24:58 -0800 |
commit | f1072be3b795b1ca360be62cb22581250cd2d6d3 (patch) | |
tree | e6b8ff09db8c213c20f6549231935cbe28a399c7 /audio/out/ao_wasapi_utils.c | |
parent | dea42f77dbf5dedf9d009639da897ef4b3b00c34 (diff) | |
download | mpv-f1072be3b795b1ca360be62cb22581250cd2d6d3.tar.bz2 mpv-f1072be3b795b1ca360be62cb22581250cd2d6d3.tar.xz |
ao_wasapi: fix check for already found device
oops, forgot to change this when I made get_deviceID a more proper function.
state->deviceID is not set or read here - that's for the caller to do.
Diffstat (limited to 'audio/out/ao_wasapi_utils.c')
-rw-r--r-- | audio/out/ao_wasapi_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index 6d2a707aac..842b7fd9e2 100644 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -909,7 +909,7 @@ LPWSTR find_deviceID(struct ao *ao) } if (bstrcmp(device, bstr_strip(bstr0(d->name))) == 0) { - if (!state->deviceID) { + if (!deviceID) { MP_VERBOSE(ao, "Selecting device by name: \'%.*s\'\n", BSTR_P(device)); deviceID = select_device(ao->log, d); } else { |