mirror of
https://github.com/mpv-player/mpv
synced 2025-03-08 23:27:33 +00:00
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:
parent
9b8967a7de
commit
5aab9eafb0
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user