summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-29 09:50:49 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-29 09:50:49 +0200
commit9639cfdd46da3ff3fa6694967d95976bcff83815 (patch)
treea2b2d3943922658b7331787adc6c37d4616c5a1d /dvbapi.c
parentbdfeda21c755426ef0cc419022abc2bfc90b5f35 (diff)
downloadvdr-9639cfdd46da3ff3fa6694967d95976bcff83815.tar.gz
vdr-9639cfdd46da3ff3fa6694967d95976bcff83815.tar.bz2
Increased timeout until reporting 'video data stream broken' when recording
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 2594eeb0..224888ec 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.94 2001/07/29 09:00:19 kls Exp $
+ * $Id: dvbapi.c 1.95 2001/07/29 09:49:33 kls Exp $
*/
#include "dvbapi.h"
@@ -66,6 +66,10 @@ extern "C" {
// The number of frames to back up when resuming an interrupted replay session:
#define RESUMEBACKUP (10 * FRAMESPERSEC)
+// The maximum time we wait before assuming that a recorded video data stream
+// is broken:
+#define MAXBROKENTIMEOUT 30 // seconds
+
#define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls
typedef unsigned char uchar;
@@ -534,7 +538,7 @@ void cRecordBuffer::Input(void)
break;
}
}
- if (time(NULL) - t > 10) {
+ if (time(NULL) - t > MAXBROKENTIMEOUT) {
esyslog(LOG_ERR, "ERROR: video data stream broken");
cThread::EmergencyExit(true);
t = time(NULL);