1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Re-introduced a sleep to cDvbPlayer::Action() to avoid high CPU load in still picture mode

This commit is contained in:
Klaus Schmidinger 2004-11-27 10:12:20 +01:00
parent 5c6ed74aff
commit a05ed03631
3 changed files with 8 additions and 2 deletions

View File

@ -890,6 +890,8 @@ Reinhard Nissl <rnissl@gmx.de>
for reporting a a crash in the time search mechanism for reporting a a crash in the time search mechanism
for taking the complete size of available data into account when deciding whether for taking the complete size of available data into account when deciding whether
to clear the transfer buffer to avoid overflows to clear the transfer buffer to avoid overflows
for reporting a high CPU load in still picture mode after removing the usleep()
call from cDvbPlayer::Action()
Richard Robson <richard_robson@beeb.net> Richard Robson <richard_robson@beeb.net>
for reporting freezing replay if a timer starts while in Transfer Mode from the for reporting freezing replay if a timer starts while in Transfer Mode from the

View File

@ -3160,10 +3160,12 @@ Video Disk Recorder Revision History
right day of week for timers in the future. right day of week for timers in the future.
- Some improvements to cPoller (thanks to Marco Schlüßler). - Some improvements to cPoller (thanks to Marco Schlüßler).
2004-11-26: Version 1.3.18 2004-11-27: Version 1.3.18
- Removed an unused variable from cTimer::GetWDayFromMDay() (thanks to Wayne Keer - Removed an unused variable from cTimer::GetWDayFromMDay() (thanks to Wayne Keer
for reporting this one). for reporting this one).
- Some more changes to the 'childTid' handling in cThread (based on suggestions by - Some more changes to the 'childTid' handling in cThread (based on suggestions by
Stefan Huelswitt). Stefan Huelswitt).
- Fixed the spelling of 'canceling' (thanks to Wayne Keer for reporting this one). - Fixed the spelling of 'canceling' (thanks to Wayne Keer for reporting this one).
- Re-introduced a sleep to cDvbPlayer::Action() to avoid high CPU load in still
picture mode (thanks to Reinhard Nissl for reporting this one).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "dvbplayer.h"
@ -490,6 +490,8 @@ void cDvbPlayer::Action(void)
break; break;
} }
} }
else
cCondWait::SleepMs(1); // this keeps the CPU load low
} }
// Store the frame in the buffer: // Store the frame in the buffer: