From f1072be3b795b1ca360be62cb22581250cd2d6d3 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Fri, 22 Jan 2016 05:16:48 -0800 Subject: 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. --- audio/out/ao_wasapi_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') 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 { -- cgit v1.2.3