From 5aab9eafb05ee3ed47b90517867c5014fecf6a62 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 26 Aug 2012 15:12:34 +0000 Subject: cache: fix long hangs 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] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35119 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/cache2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/cache2.c b/stream/cache2.c index 9161027ee3..5bc23b9fbe 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -27,7 +27,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 #include -- cgit v1.2.3