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

In case of incomplete sections an error message is now logged only every 10 seconds

This commit is contained in:
Klaus Schmidinger 2004-01-10 11:45:42 +01:00
parent 37a73ed5b4
commit 00d52b12c6
3 changed files with 10 additions and 3 deletions

View File

@ -2562,3 +2562,5 @@ Video Disk Recorder Revision History
user name to appear before the command option (thanks to Robert Huitl). user name to appear before the command option (thanks to Robert Huitl).
- Fixed testing for matching section filters in case they are turned off (thanks - Fixed testing for matching section filters in case they are turned off (thanks
to Marcel Wiesweg). to Marcel Wiesweg).
- In case of incomplete sections an error message is now logged only every 10
seconds.

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: sections.c 1.2 2004/01/03 12:54:01 kls Exp $ * $Id: sections.c 1.3 2004/01/10 11:45:42 kls Exp $
*/ */
#include "sections.h" #include "sections.h"
@ -39,6 +39,7 @@ cSectionHandler::cSectionHandler(cDevice *Device)
transponder = 0; transponder = 0;
statusCount = 0; statusCount = 0;
on = false; on = false;
lastIncompleteSection = 0;
Start(); Start();
} }
@ -176,8 +177,10 @@ void cSectionHandler::Action(void)
fi->Process(pid, tid, buf, len); fi->Process(pid, tid, buf, len);
} }
} }
else else if (time(NULL) - lastIncompleteSection > 10) { // log them only every 10 seconds
dsyslog("read incomplete section - len = %d, r = %d", len, r); dsyslog("read incomplete section - len = %d, r = %d", len, r);
lastIncompleteSection = time(NULL);
}
} }
} }
} }

View File

@ -4,12 +4,13 @@
* 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: sections.h 1.1 2003/12/21 14:37:00 kls Exp $ * $Id: sections.h 1.2 2004/01/10 11:42:49 kls Exp $
*/ */
#ifndef __SECTIONS_H #ifndef __SECTIONS_H
#define __SECTIONS_H #define __SECTIONS_H
#include <time.h>
#include "filter.h" #include "filter.h"
#include "thread.h" #include "thread.h"
#include "tools.h" #include "tools.h"
@ -26,6 +27,7 @@ private:
int transponder; int transponder;
int statusCount; int statusCount;
bool on; bool on;
time_t lastIncompleteSection;
cList<cFilter> filters; cList<cFilter> filters;
cList<cFilterHandle> filterHandles; cList<cFilterHandle> filterHandles;
void Add(const cFilterData *FilterData); void Add(const cFilterData *FilterData);