summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2012-08-26 15:12:34 +0000
committerwm4 <wm4@nowhere>2012-10-30 19:50:18 +0100
commit5aab9eafb05ee3ed47b90517867c5014fecf6a62 (patch)
tree2a06233198b51cc8f400e16a095678ef8c4c35ab /stream
parent9b8967a7decf1bd01e0543981fe44651b03101fb (diff)
downloadmpv-5aab9eafb05ee3ed47b90517867c5014fecf6a62.tar.bz2
mpv-5aab9eafb05ee3ed47b90517867c5014fecf6a62.tar.xz
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
Diffstat (limited to 'stream')
-rw-r--r--stream/cache2.c2
1 files changed, 1 insertions, 1 deletions
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 <stdio.h>
#include <stdlib.h>