summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-08-27 09:02:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-08-27 09:02:09 +0200
commit0c27583ba914a465fa57b0740347c0c466f0ccff (patch)
tree837d55a51aebf37fca9ced82adead863cb3ac5cd /device.c
parentc23d35e267d0127eaaf6e117b5546deb095d4bc4 (diff)
downloadvdr-0c27583ba914a465fa57b0740347c0c466f0ccff.tar.gz
vdr-0c27583ba914a465fa57b0740347c0c466f0ccff.tar.bz2
Removed the TUNER_LOCK_TIMEOUT in cDevice::AttachReceiver() since it caused more trouble than it fixed
Diffstat (limited to 'device.c')
-rw-r--r--device.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/device.c b/device.c
index 2f614988..23808030 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.106 2005/08/21 08:56:49 kls Exp $
+ * $Id: device.c 1.107 2005/08/27 09:01:09 kls Exp $
*/
#include "device.h"
@@ -139,7 +139,6 @@ int cPesAssembler::PacketSize(const uchar *data)
// The default priority for non-primary devices:
#define DEFAULTPRIORITY -1
-#define TUNER_LOCK_TIMEOUT 5000 // ms
int cDevice::numDevices = 0;
int cDevice::useDevice = 0;
@@ -1186,10 +1185,6 @@ bool cDevice::AttachReceiver(cReceiver *Receiver)
return false;
if (Receiver->device == this)
return true;
- if (!HasLock(TUNER_LOCK_TIMEOUT)) {
- esyslog("ERROR: device %d has no lock, can't attach receiver!", CardIndex() + 1);
- return false;
- }
cMutexLock MutexLock(&mutexReceiver);
for (int i = 0; i < MAXRECEIVERS; i++) {
if (!receiver[i]) {