[MPlayer-cvslog] r35119 - trunk/stream/cache2.c

reimar subversion at mplayerhq.hu
Sun Aug 26 17:12:34 CEST 2012


Author: reimar
Date: Sun Aug 26 17:12:34 2012
New Revision: 35119

Log:
Avoid sleeping 0 ms, this can cause sleep to be not called at all.

This will then cause long hangs e.g. when sleeping on single-CPU/core computers.
Should fix bug #2084.
Patch suggested by Visenri [visenri yahoo es]

Modified:
   trunk/stream/cache2.c

Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c	Sat Aug 25 12:52:00 2012	(r35118)
+++ trunk/stream/cache2.c	Sun Aug 26 17:12:34 2012	(r35119)
@@ -29,7 +29,7 @@
 #define INITIAL_FILL_USLEEP_COUNT 10
 #define FILL_USLEEP_TIME 50000
 #define PREFILL_SLEEP_TIME 200
-#define CONTROL_SLEEP_TIME 0
+#define CONTROL_SLEEP_TIME 1
 
 #include <stdio.h>
 #include <stdlib.h>


More information about the MPlayer-cvslog mailing list