mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
dea42f77db
commit
f1072be3b7
|
@ -909,7 +909,7 @@ LPWSTR find_deviceID(struct ao *ao)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bstrcmp(device, bstr_strip(bstr0(d->name))) == 0) {
|
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));
|
MP_VERBOSE(ao, "Selecting device by name: \'%.*s\'\n", BSTR_P(device));
|
||||||
deviceID = select_device(ao->log, d);
|
deviceID = select_device(ao->log, d);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue