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:
parent
d9a1358505
commit
553ed6b32f
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user