diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-10 14:03:42 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-10 14:03:42 +0000 |
commit | dd73597f8cb84cbbf6d21607f58a4693e350f493 (patch) | |
tree | c959faab90af8ffe381f6cf8aaaf80f9e7a72b10 /input | |
parent | 87836bc7c8cb2dfc512c92c849ecc719610213df (diff) | |
download | mpv-dd73597f8cb84cbbf6d21607f58a4693e350f493.tar.bz2 mpv-dd73597f8cb84cbbf6d21607f58a4693e350f493.tar.xz |
usec_sleep(0) is not the same as not sleeping at all.
Fixes massive slowdown on Windows.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26718 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/input.c b/input/input.c index 5d6cc08ed8..c43afbfa4f 100644 --- a/input/input.c +++ b/input/input.c @@ -1215,7 +1215,7 @@ static mp_cmd_t *read_events(int time, int paused) } } #else - if (!got_cmd) + if (!got_cmd && time) usec_sleep(time * 1000); #endif |