From af78bac2bb999f2b835048e202d2839102e175ff Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 30 Jul 2005 09:23:29 +0200 Subject: [PATCH] Added a sleep in cDvbPlayer::Action() in case there is no data to send to the device --- CONTRIBUTORS | 4 ++++ HISTORY | 5 +++++ config.h | 6 +++--- dvbplayer.c | 4 +++- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index cc43b028..45a446b2 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1388,3 +1388,7 @@ Georg Acher Henrik Niehaus for reporting a problem with timers with a day given as MTWTF--@6, i.e. a repeating timer with first day not as full date, but just day of month + +Martin Wache + for adding a sleep in cDvbPlayer::Action() in case there is no data to send to the + device, which avoids a busy loop on very fast machines diff --git a/HISTORY b/HISTORY index 48fb6b5c..03b4dd58 100644 --- a/HISTORY +++ b/HISTORY @@ -3633,3 +3633,8 @@ Video Disk Recorder Revision History - When drawing a bitmap to the OSD, the existing palette of the target can now be replaced with the new one instead of adding the new entries (thanks to Andreas Regel). + +2005-07-30: Version 1.3.28 + +- Added a sleep in cDvbPlayer::Action() in case there is no data to send to the + device, which avoids a busy loop on very fast machines (thanks to Martin Wache). diff --git a/config.h b/config.h index 439e8f03..cce09e9e 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.221 2005/06/18 10:29:25 kls Exp $ + * $Id: config.h 1.222 2005/07/30 09:19:25 kls Exp $ */ #ifndef __CONFIG_H @@ -20,8 +20,8 @@ #include "i18n.h" #include "tools.h" -#define VDRVERSION "1.3.27" -#define VDRVERSNUM 10327 // Version * 10000 + Major * 100 + Minor +#define VDRVERSION "1.3.28" +#define VDRVERSNUM 10328 // Version * 10000 + Major * 100 + Minor #define MAXPRIORITY 99 #define MAXLIFETIME 99 diff --git a/dvbplayer.c b/dvbplayer.c index 2d4e1e48..3082e281 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.34 2005/05/22 11:26:51 kls Exp $ + * $Id: dvbplayer.c 1.35 2005/07/30 09:20:08 kls Exp $ */ #include "dvbplayer.h" @@ -497,6 +497,8 @@ void cDvbPlayer::Action(void) p = NULL; } } + else + Sleep = true; } } active = running = false;