mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
ao_wasapi: code formatting and alignment
This commit is contained in:
parent
46b9df9f9e
commit
bf3e0bc1da
@ -181,7 +181,7 @@ static char *wasapi_explain_err(const HRESULT hr)
|
|||||||
|
|
||||||
char *mp_HRESULT_to_str_buf(char *buf, size_t buf_size, HRESULT hr)
|
char *mp_HRESULT_to_str_buf(char *buf, size_t buf_size, HRESULT hr)
|
||||||
{
|
{
|
||||||
snprintf(buf,buf_size,"%s (0x%"PRIx32")",
|
snprintf(buf, buf_size, "%s (0x%"PRIx32")",
|
||||||
wasapi_explain_err(hr), (uint32_t) hr);
|
wasapi_explain_err(hr), (uint32_t) hr);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
@ -1117,8 +1117,7 @@ retry:
|
|||||||
|
|
||||||
MP_DBG(ao, "Fixing format\n");
|
MP_DBG(ao, "Fixing format\n");
|
||||||
hr = fix_format(ao);
|
hr = fix_format(ao);
|
||||||
if ((hr == AUDCLNT_E_DEVICE_IN_USE ||
|
if ((hr == AUDCLNT_E_DEVICE_IN_USE || hr == AUDCLNT_E_DEVICE_INVALIDATED) &&
|
||||||
hr == AUDCLNT_E_DEVICE_INVALIDATED) &&
|
|
||||||
retry_wait <= 8)
|
retry_wait <= 8)
|
||||||
{
|
{
|
||||||
wasapi_thread_uninit(ao);
|
wasapi_thread_uninit(ao);
|
||||||
|
Loading…
Reference in New Issue
Block a user