Mercurial > mplayer.hg
diff stream/cache2.c @ 35025:a11919e51187
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]
| author | reimar |
|---|---|
| date | Sun, 26 Aug 2012 15:12:34 +0000 |
| parents | 4d94558867d6 |
| children | bc0898c7399b |
line wrap: on
line diff
--- a/stream/cache2.c Sat Aug 25 10:52:00 2012 +0000 +++ b/stream/cache2.c Sun Aug 26 15:12:34 2012 +0000 @@ -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>
