[MPlayer-cvslog] r35564 - trunk/libao2/ao_dsound.c

reimar subversion at mplayerhq.hu
Sun Dec 2 22:40:37 CET 2012


Author: reimar
Date: Sun Dec  2 22:40:37 2012
New Revision: 35564

Log:
Reduce sleep time now that we will spend much less time in this loop.

Modified:
   trunk/libao2/ao_dsound.c

Modified: trunk/libao2/ao_dsound.c
==============================================================================
--- trunk/libao2/ao_dsound.c	Sun Dec  2 22:39:29 2012	(r35563)
+++ trunk/libao2/ao_dsound.c	Sun Dec  2 22:40:37 2012	(r35564)
@@ -574,7 +574,7 @@ static void uninit(int immed)
 		// the right amount of time first.
 		usec_sleep(get_delay() * 1000 * 1000);
 		while(!IDirectSoundBuffer_GetStatus(hdsbuf,&status) && (status&DSBSTATUS_PLAYING))
-			usec_sleep(20000);
+			usec_sleep(5000);
 	}
 	DestroyBuffer();
 	UninitDirectSound();


More information about the MPlayer-cvslog mailing list