[xiph-cvs] cvs commit: ices/src input.c
Michael Smith
msmith at xiph.org
Sun Dec 29 03:28:19 PST 2002
msmith 02/12/29 06:28:19
Modified: src input.c
Log:
Extend max sleep time, it was too short for some uses.
Revision Changes Path
1.20 +4 -4 ices/src/input.c
Index: input.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/input.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- input.c 29 Dec 2002 10:28:30 -0000 1.19
+++ input.c 29 Dec 2002 11:28:19 -0000 1.20
@@ -2,7 +2,7 @@
* - Main producer control loop. Fetches data from input modules, and controls
* submission of these to the instance threads. Timing control happens here.
*
- * $Id: input.c,v 1.19 2002/12/29 10:28:30 msmith Exp $
+ * $Id: input.c,v 1.20 2002/12/29 11:28:19 msmith Exp $
*
* Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
*
@@ -96,10 +96,10 @@
sleep = ((double)control->senttime / 1000) -
(timing_get_time() - control->starttime);
- if(sleep > 1000) {
- LOG_WARN1("Extended sleep requested (%ld ms), sleeping for one second",
+ if(sleep > 5000) {
+ LOG_WARN1("Extended sleep requested (%ld ms), sleeping for 5 seconds",
sleep);
- timing_sleep(1000);
+ timing_sleep(5000);
}
else if(sleep > 0)
timing_sleep((uint64_t)sleep);
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list