[Mplayer-cvslog] CVS: main/libao2 ao_sdl.c,1.36,1.37
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sat Nov 6 23:33:20 CET 2004
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv23783/libao2
Modified Files:
ao_sdl.c
Log Message:
respect immed uninit flag, initialize ao_data.outburst.
Index: ao_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_sdl.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- ao_sdl.c 31 Oct 2004 21:02:47 -0000 1.36
+++ ao_sdl.c 6 Nov 2004 22:33:17 -0000 1.37
@@ -280,6 +280,7 @@
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 @@
// 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();
More information about the MPlayer-cvslog
mailing list