summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-11-28 03:25:35 -0800
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:10 +0900
commit885c6e5b07d02d71d54fe9ac0da1b54d3c4c3eae (patch)
tree7a897c593ff36ad9d78d6a5d4b73b0503353ab94
parent44a7649e79b30e43119be0b694fddbb30398bb78 (diff)
downloadmpv-885c6e5b07d02d71d54fe9ac0da1b54d3c4c3eae.tar.bz2
mpv-885c6e5b07d02d71d54fe9ac0da1b54d3c4c3eae.tar.xz
ao/wasapi: remove unused variable
-rwxr-xr-xaudio/out/ao_wasapi_utils.c3
1 files changed, 0 insertions, 3 deletions
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;
}