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:
Kevin Mitchell 2016-01-22 05:16:48 -08:00
parent dea42f77db
commit f1072be3b7
1 changed files with 1 additions and 1 deletions

View File

@ -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 {