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
This commit is contained in:
reimar 2012-08-26 15:12:34 +00:00 committed by wm4
parent 9b8967a7de
commit 5aab9eafb0
1 changed files with 1 additions and 1 deletions

View File

@ -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>