summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-06-02 12:20:13 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-06-02 12:20:13 +0200
commitb41adae497b395d66cbca978a0b1b557aebda070 (patch)
treed37f6761f824384b128fb6eb37a01ac1df88227f /dvbapi.c
parentf615bfd8413155415e08cc55b511a00ac3c6e1b2 (diff)
downloadvdr-b41adae497b395d66cbca978a0b1b557aebda070.tar.gz
vdr-b41adae497b395d66cbca978a0b1b557aebda070.tar.bz2
Emergency exit if no data received for more than 5 seconds during recording
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbapi.c b/dvbapi.c
index e41ef7ab..caed6fc3 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.67 2001/06/02 09:31:03 kls Exp $
+ * $Id: dvbapi.c 1.68 2001/06/02 12:20:13 kls Exp $
*/
#include "dvbapi.h"
@@ -534,7 +534,7 @@ void cRecordBuffer::Input(void)
break;
}
}
- else if (time(NULL) - t > 5) {
+ if (time(NULL) - t > 5) {
esyslog(LOG_ERR, "ERROR: video data stream broken");
cThread::EmergencyExit(true);
}