summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-16 13:36:06 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-16 13:36:06 +0200
commite944312b655cc8354bea9df1de282314618241a4 (patch)
tree2ef4ad322ae05727b636c90afc6d5c0efa9365de /device.c
parent0e10fc9599e232505832beece901390265d731d7 (diff)
downloadvdr-e944312b655cc8354bea9df1de282314618241a4.tar.gz
vdr-e944312b655cc8354bea9df1de282314618241a4.tar.bz2
Moved the detection of a broken video data stream from the cDevice into the cRecorder
Diffstat (limited to 'device.c')
-rw-r--r--device.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/device.c b/device.c
index b248114a..7562a328 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 1.42 2003/05/11 08:53:09 kls Exp $
+ * $Id: device.c 1.43 2003/05/16 13:26:43 kls Exp $
*/
#include "device.h"
@@ -25,10 +25,6 @@
// The default priority for non-primary devices:
#define DEFAULTPRIORITY -2
-// The maximum time we wait before assuming that a recorded video data stream
-// is broken:
-#define MAXBROKENTIMEOUT 30 // seconds
-
int cDevice::numDevices = 0;
int cDevice::useDevice = 0;
int cDevice::nextCardIndex = 0;
@@ -656,7 +652,6 @@ void cDevice::Action(void)
dsyslog("receiver thread started on device %d (pid=%d)", CardIndex() + 1, getpid());
if (OpenDvr()) {
- time_t t = time(NULL);
active = true;
for (; active;) {
// Read data from the DVR device:
@@ -671,18 +666,10 @@ void cDevice::Action(void)
receiver[i]->Receive(b, TS_SIZE);
}
Unlock();
- t = time(NULL);
}
}
else
break;
-
- //XXX+ put this into the recorder??? or give the receiver a flag whether it wants this?
- if (time(NULL) - t > MAXBROKENTIMEOUT) {
- esyslog("ERROR: video data stream broken on device %d", CardIndex() + 1);
- cThread::EmergencyExit(true);
- t = time(NULL);
- }
}
CloseDvr();
}