mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 19:37:30 +01:00
respect immed uninit flag, initialize ao_data.outburst.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13888 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
667f16b1e2
commit
2f4593d56b
@ -280,6 +280,7 @@ void callback(void *userdata, Uint8 *stream, int len); userdata is the pointer s
|
||||
|
||||
mp_msg(MSGT_AO,MSGL_V,"SDL: buf size = %d\n",obtained.size);
|
||||
ao_data.buffersize=obtained.size;
|
||||
ao_data.outburst = CHUNK_SIZE;
|
||||
|
||||
reset();
|
||||
/* unsilence audio, if callback is ready */
|
||||
@ -291,6 +292,7 @@ void callback(void *userdata, Uint8 *stream, int len); userdata is the pointer s
|
||||
// close audio device
|
||||
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);
|
||||
SDL_CloseAudio();
|
||||
|
Loading…
Reference in New Issue
Block a user