diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-27 23:06:32 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-27 23:06:32 +0000 |
commit | 95cf851ea67f41c3c8b2da81c1d6dd55ab47458a (patch) | |
tree | 397d495bb6918e0ee03aa9b0517a67ca524fc606 /libao2/ao_sdl.c | |
parent | 4c3d533c7dd64294c77e528e22f88da2b67937a8 (diff) | |
download | mpv-95cf851ea67f41c3c8b2da81c1d6dd55ab47458a.tar.bz2 mpv-95cf851ea67f41c3c8b2da81c1d6dd55ab47458a.tar.xz |
aos should respect the immed uninit flag (quit immediatly vs waiting till file
is played to end).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14850 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_sdl.c')
-rw-r--r-- | libao2/ao_sdl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c index b75d6dd27e..d2e506cf55 100644 --- a/libao2/ao_sdl.c +++ b/libao2/ao_sdl.c @@ -293,8 +293,7 @@ void callback(void *userdata, Uint8 *stream, int len); userdata is the pointer s static void uninit(int immed){ mp_msg(MSGT_AO,MSGL_V,"SDL: Audio Subsystem shutting down!\n"); if (!immed) - while(buf_free() < BUFFSIZE - CHUNK_SIZE) - usec_sleep(50000); + usec_sleep(get_delay() * 1000 * 1000); SDL_CloseAudio(); SDL_QuitSubSystem(SDL_INIT_AUDIO); } |