mirror of
https://github.com/mpv-player/mpv
synced 2025-03-31 15:59:34 +00:00
Use goto instead of useless recursion that might fill up the stack
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23932 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f100b100aa
commit
1a82dd2267
@ -137,6 +137,7 @@ static void uninit(sh_audio_t *sh)
|
||||
HRESULT ret;
|
||||
acm_context_t *priv = sh->context;
|
||||
|
||||
retry:
|
||||
ret = acmStreamClose(priv->handle, 0);
|
||||
|
||||
if (ret)
|
||||
@ -146,8 +147,7 @@ static void uninit(sh_audio_t *sh)
|
||||
case ACMERR_CANCELED:
|
||||
mp_msg(MSGT_WIN32, MSGL_DBG2, "ACM_Decoder: stream busy, waiting..\n");
|
||||
usec_sleep(100000000);
|
||||
uninit(sh);
|
||||
return;
|
||||
goto retry;
|
||||
case ACMERR_UNPREPARED:
|
||||
case ACMERR_NOTPOSSIBLE:
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user