summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-04-20 10:45:33 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-04-20 10:45:33 +0200
commitc47891d786f4d0f6ce2d97e39a7e92e8c9276d9d (patch)
tree907822773efcc06319a0a33ada4b16478daea93a /dvbapi.c
parent5153104e7edd698ee006964dcea479539dba8ebb (diff)
downloadvdr-c47891d786f4d0f6ce2d97e39a7e92e8c9276d9d.tar.gz
vdr-c47891d786f4d0f6ce2d97e39a7e92e8c9276d9d.tar.bz2
Added usleep() in cRecordBuffer::Input()
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 9d59d900..1c4a9521 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.170 2002/04/07 09:35:51 kls Exp $
+ * $Id: dvbapi.c 1.171 2002/04/20 10:45:33 kls Exp $
*/
#include "dvbapi.h"
@@ -533,6 +533,8 @@ void cRecordBuffer::Input(void)
int w = Put(p, r);
p += w;
r -= w;
+ if (r > 0)
+ usleep(1); // this keeps the CPU load low
}
t = time(NULL);
}