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

Added missing update of lastOsdSizeUpdate

This commit is contained in:
Klaus Schmidinger 2009-05-12 21:08:23 +02:00
parent 8a7dbd1e56
commit 448f95f817
2 changed files with 6 additions and 3 deletions

View File

@ -6075,7 +6075,7 @@ Video Disk Recorder Revision History
- cFrameDetector::Analyze() now syncs on the TS packet sync bytes (thanks to - cFrameDetector::Analyze() now syncs on the TS packet sync bytes (thanks to
Oliver Endriss for reporting broken index generation after a buffer overflow). Oliver Endriss for reporting broken index generation after a buffer overflow).
2009-05-10: Version 1.7.8 2009-05-12: Version 1.7.8
- Fixed a typo in aspect ratio 2.21:1 (reported by Reinhard Nissl). - Fixed a typo in aspect ratio 2.21:1 (reported by Reinhard Nissl).
- The name of the function cDevice::GetVideoSize() wasn't very well chosen - The name of the function cDevice::GetVideoSize() wasn't very well chosen
@ -6095,3 +6095,4 @@ Video Disk Recorder Revision History
it has returned a non-NULL value. it has returned a non-NULL value.
- Added MPEG 1 handling to remux.c (thanks to Ales Jurik). - Added MPEG 1 handling to remux.c (thanks to Ales Jurik).
- Fixed use of time_t in cEIT::cEIT() (thanks to Tobias Bratfisch). - Fixed use of time_t in cEIT::cEIT() (thanks to Tobias Bratfisch).
- Added missing update of lastOsdSizeUpdate.

6
vdr.c
View File

@ -22,7 +22,7 @@
* *
* The project's page is at http://www.cadsoft.de/vdr * The project's page is at http://www.cadsoft.de/vdr
* *
* $Id: vdr.c 2.8 2009/05/03 10:33:06 kls Exp $ * $Id: vdr.c 2.9 2009/05/12 21:02:58 kls Exp $
*/ */
#include <getopt.h> #include <getopt.h>
@ -750,8 +750,10 @@ int main(int argc, char *argv[])
// Update the OSD size: // Update the OSD size:
{ {
static time_t lastOsdSizeUpdate = 0; static time_t lastOsdSizeUpdate = 0;
if (Now != lastOsdSizeUpdate) // once per second if (Now != lastOsdSizeUpdate) { // once per second
cOsdProvider::UpdateOsdSize(); cOsdProvider::UpdateOsdSize();
lastOsdSizeUpdate = Now;
}
} }
// Restart the Watchdog timer: // Restart the Watchdog timer:
if (WatchdogTimeout > 0) { if (WatchdogTimeout > 0) {