ao_wasapi0: Use the mix format directly in try_mix_format

This commit is contained in:
Diogo Franco (Kovensky) 2013-07-20 14:00:15 -03:00 committed by wm4
parent d9a1358505
commit 553ed6b32f
1 changed files with 2 additions and 0 deletions

View File

@ -382,6 +382,8 @@ static int try_mix_format(struct wasapi0_state *state,
ret = try_format(state, ao, wformat.Format.wBitsPerSample,
wformat.Format.nSamplesPerSec, ao->channels);
if (ret)
state->format = wformat;
exit_label:
SAFE_RELEASE(deviceFormat, CoTaskMemFree(deviceFormat));