mirror of https://github.com/mpv-player/mpv
ao_wasapi: don't repeat format negotiation on align hack
Even if it did return a different result, the bufferFrameCount from the align hack would be wrong anyway.
This commit is contained in:
parent
71cc28b804
commit
4389ddcc34
|
@ -984,10 +984,13 @@ retry:
|
|||
EXIT_ON_ERROR(hr);
|
||||
}
|
||||
|
||||
MP_DBG(ao, "Probing formats\n");
|
||||
if (!find_formats(ao)) {
|
||||
hr = E_FAIL;
|
||||
EXIT_ON_ERROR(hr);
|
||||
// In the event of an align hack, we've already done this.
|
||||
if (!align_hack) {
|
||||
MP_DBG(ao, "Probing formats\n");
|
||||
if (!find_formats(ao)) {
|
||||
hr = E_FAIL;
|
||||
EXIT_ON_ERROR(hr);
|
||||
}
|
||||
}
|
||||
|
||||
MP_DBG(ao, "Fixing format\n");
|
||||
|
|
Loading…
Reference in New Issue