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:
Kevin Mitchell 2017-07-09 15:19:50 -07:00
parent 71cc28b804
commit 4389ddcc34
1 changed files with 7 additions and 4 deletions

View File

@ -984,11 +984,14 @@ retry:
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");
hr = fix_format(ao, align_hack);