From 8368ead1fa279e84012eaffcad321bb3cd1ed166 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Mon, 4 Jan 2016 18:09:03 -0800 Subject: ao_wasapi: make find_deviceID read only wrt struct ao This makes it clearer that state->device is being allocated. --- audio/out/ao_wasapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'audio/out/ao_wasapi.c') 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; } -- cgit v1.2.3