From e2bc1c5f177519a7a6639718c59839bd1f4b2c7a Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Fri, 28 Nov 2014 03:25:35 -0800 Subject: ao/wasapi: remove unused variable --- audio/out/ao_wasapi_utils.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'audio/out/ao_wasapi_utils.c') diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index 608d0afd18..712610bc73 100755 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -241,7 +241,6 @@ static int try_mix_format(struct ao *ao) { struct wasapi_state *state = (struct wasapi_state *)ao->priv; WAVEFORMATEX *deviceFormat = NULL; - WAVEFORMATEX *closestMatch = NULL; HRESULT hr = IAudioClient_GetMixFormat(state->pAudioClient, &deviceFormat); EXIT_ON_ERROR(hr); @@ -256,13 +255,11 @@ static int try_mix_format(struct ao *ao) state->format = wformat; SAFE_RELEASE(deviceFormat, CoTaskMemFree(deviceFormat)); - SAFE_RELEASE(closestMatch, CoTaskMemFree(closestMatch)); return ret; exit_label: MP_ERR(state, "Error getting mix format: %s (0x%"PRIx32")\n", wasapi_explain_err(hr), (uint32_t)hr); SAFE_RELEASE(deviceFormat, CoTaskMemFree(deviceFormat)); - SAFE_RELEASE(closestMatch, CoTaskMemFree(closestMatch)); return 0; } -- cgit v1.2.3