1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

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

View File

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