summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-14 09:24:57 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-14 09:24:57 +0200
commit497183cd733868e1ccedfb025b247a469eda074d (patch)
tree4ed37df75a53c94180c771e4b59afe2597063a21 /dvbapi.c
parenta62790ed09b1cf75e9a66821ed65c0a0f511e092 (diff)
downloadvdr-497183cd733868e1ccedfb025b247a469eda074d.tar.gz
vdr-497183cd733868e1ccedfb025b247a469eda074d.tar.bz2
Fixed high system load when displaying a still picture in replay
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 6bf21786..a47d13a0 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.83 2001/07/12 12:23:29 kls Exp $
+ * $Id: dvbapi.c 1.84 2001/07/14 09:23:50 kls Exp $
*/
#include "dvbapi.h"
@@ -761,6 +761,8 @@ void cReplayBuffer::Input(void)
break;
}
}
+ else
+ usleep(1); // this keeps the CPU load low
if (blockInput > 1)
blockInput = 1;
}
@@ -792,6 +794,8 @@ void cReplayBuffer::Output(void)
}
}
}
+ else
+ usleep(1); // this keeps the CPU load low
if (blockOutput > 1)
blockOutput = 1;
}