[MPlayer-cvslog] r34017 - trunk/input/input.c
reimar
subversion at mplayerhq.hu
Sat Aug 27 11:58:55 CEST 2011
Author: reimar
Date: Sat Aug 27 11:58:54 2011
New Revision: 34017
Log:
Ensure we do not use 100% CPU when waiting for input with no file-based inputs.
Modified:
trunk/input/input.c
Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c Fri Aug 26 21:35:46 2011 (r34016)
+++ trunk/input/input.c Sat Aug 27 11:58:54 2011 (r34017)
@@ -1269,7 +1269,8 @@ static mp_cmd_t *read_events(int time, i
strerror(errno));
FD_ZERO(&fds);
}
- }
+ } else if (time)
+ usec_sleep(time * 1000);
}
#else
if (!got_cmd && time)
More information about the MPlayer-cvslog
mailing list