summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-11-27 10:12:20 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-11-27 10:12:20 +0100
commita05ed0363139694d1b4eece5ea54346de64265e1 (patch)
treefc721ee3225ed5f8113f0128da0dc25e30ca738e /dvbplayer.c
parent5c6ed74aff9a766cdede1c02e12e45a0a3d97b43 (diff)
downloadvdr-a05ed0363139694d1b4eece5ea54346de64265e1.tar.gz
vdr-a05ed0363139694d1b4eece5ea54346de64265e1.tar.bz2
Re-introduced a sleep to cDvbPlayer::Action() to avoid high CPU load in still picture mode
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dvbplayer.c b/dvbplayer.c
index d583fe6b..99a9aad9 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 1.26 2004/10/23 12:39:35 kls Exp $
+ * $Id: dvbplayer.c 1.27 2004/11/27 10:07:05 kls Exp $
*/
#include "dvbplayer.h"
@@ -490,6 +490,8 @@ void cDvbPlayer::Action(void)
break;
}
}
+ else
+ cCondWait::SleepMs(1); // this keeps the CPU load low
}
// Store the frame in the buffer: