summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-01-14 10:24:19 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2001-01-14 10:24:19 +0100
commite51a725c2d9826cfbab45c4a5d23bd9617fdd267 (patch)
treeaa4fcb54fc7f5b9723ec4b58b8ed1b07e1d941e1
parent297e727a59b2e08f8c414739325f8df390b567c4 (diff)
downloadvdr-e51a725c2d9826cfbab45c4a5d23bd9617fdd267.tar.gz
vdr-e51a725c2d9826cfbab45c4a5d23bd9617fdd267.tar.bz2
In case the video data stream is broken the log message will come only every 5 seconds
-rw-r--r--HISTORY2
-rw-r--r--dvbapi.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 50550cc4..9fc79db9 100644
--- a/HISTORY
+++ b/HISTORY
@@ -342,3 +342,5 @@ Video Disk Recorder Revision History
a recording is interrupted due to higher priority.
- Implemented safe writing of config files (first writes into a temporary file
and then renames it).
+- In case the video data stream is broken the log message will come only every
+ 5 seconds.
diff --git a/dvbapi.c b/dvbapi.c
index 90ba4454..4c8be491 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.47 2001/01/07 17:10:02 kls Exp $
+ * $Id: dvbapi.c 1.48 2001/01/14 10:15:26 kls Exp $
*/
#include "dvbapi.h"
@@ -791,8 +791,10 @@ void cRecordBuffer::Action(void)
if (!WriteWithTimeout())
break;
}
- if (r < 0 || (r == 0 && time(NULL) - t > 3))
+ if (r < 0 || (r == 0 && time(NULL) - t > 5)) {
esyslog(LOG_ERR, "ERROR: video data stream broken");
+ t = time(NULL);
+ }
}
SetPlayMode(videoDev, VID_PLAY_RESET);