summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-05-06 11:04:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-05-06 11:04:07 +0200
commit353233a27e57c6f1b5ac13bac95b191a2b5f556b (patch)
tree36b15c5638da56184dd93985051c0589a57b9a1a /dvbplayer.c
parent97e242d1b54e0bfac3455ddeded37136156fea36 (diff)
downloadvdr-353233a27e57c6f1b5ac13bac95b191a2b5f556b.tar.gz
vdr-353233a27e57c6f1b5ac13bac95b191a2b5f556b.tar.bz2
Fixed a possible high CPU load when pausing replay
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbplayer.c b/dvbplayer.c
index 2bf27a36..b325c989 100644
--- a/dvbplayer.c
+++ b/dvbplayer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbplayer.c 2.26 2012/03/12 14:36:55 kls Exp $
+ * $Id: dvbplayer.c 2.27 2012/05/06 11:02:35 kls Exp $
*/
#include "dvbplayer.h"
@@ -408,7 +408,7 @@ void cDvbPlayer::Action(void)
Goto(0, true);
while (Running()) {
if (WaitingForData)
- nonBlockingFileReader->WaitForDataMs(3); // this keeps the CPU load low, but reacts immediately on new data
+ WaitingForData = !nonBlockingFileReader->WaitForDataMs(3); // this keeps the CPU load low, but reacts immediately on new data
else if (Sleep) {
cPoller Poller;
DevicePoll(Poller, 10);