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:
reimar committed 2007-07-30 13:48:08 +00:00
1 parent f100b100aa
commit 1a82dd2267
1 file changed
+2 -2
+2 -2
View File
@@ -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;