[MPlayer-cvslog] r21468 - trunk/input/input.c
reimar
subversion at mplayerhq.hu
Sun Dec 3 15:01:23 CET 2006
Author: reimar
Date: Sun Dec 3 15:01:22 2006
New Revision: 21468
Modified:
trunk/input/input.c
Log:
Do not call usec_sleep when we are not supposed to sleep.
Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c (original)
+++ trunk/input/input.c Sun Dec 3 15:01:22 2006
@@ -945,7 +945,8 @@
if(num_key_fd == 0)
{
- usec_sleep(time * 1000);
+ if (time)
+ usec_sleep(time * 1000);
return MP_INPUT_NOTHING;
}
@@ -1026,7 +1027,7 @@
key_fds[i].flags |= MP_FD_DEAD;
}
}
- if (!did_sleep)
+ if (time && !did_sleep)
usec_sleep(time * 1000);
return MP_INPUT_NOTHING;
}
More information about the MPlayer-cvslog
mailing list