diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-24 08:50:15 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-24 08:50:15 +0200 |
commit | d507645323aa4bc49404645c4998bcd02fddc789 (patch) | |
tree | 4d9128427eea90f47024a7644bc444931e2fc995 /dvbdevice.c | |
parent | f7dd342f525a15209424ac41e5283775f633985e (diff) | |
download | vdr-d507645323aa4bc49404645c4998bcd02fddc789.tar.gz vdr-d507645323aa4bc49404645c4998bcd02fddc789.tar.bz2 |
Not waiting for transponder lock for EITScanner
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 0ccd94a2..bfe2aaf6 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 1.98 2004/10/23 09:57:19 kls Exp $ + * $Id: dvbdevice.c 1.99 2004/10/24 08:50:15 kls Exp $ */ #include "dvbdevice.h" @@ -748,24 +748,26 @@ bool cDvbDevice::SetChannelDevice(const cChannel *Channel, bool LiveView) StartTransferMode = false; #endif - // XXX 1.3: use the same mechanism as below (!EITScanner.UsesDevice(this)) - if (EITScanner.Active()) { - StartTransferMode = false; - TurnOnLivePIDs = false; - } - // Turn off live PIDs if necessary: if (TurnOffLivePIDs) TurnOffLiveMode(); - // Set the tuner and wait for a lock: + // Set the tuner: dvbTuner->Set(Channel, DoTune, !EITScanner.UsesDevice(this)); //XXX 1.3: this is an ugly hack - find a cleaner solution//XXX + // If this channel switch was requested by the EITScanner we don't wait for + // a lock and don't set any live PIDs (the EITScanner will wait for the lock + // by itself before setting any filters): + + if (EITScanner.UsesDevice(this)) + return true; + + // Wait for a lock: + if (!dvbTuner->Locked(TUNER_LOCK_TIMEOUT)) { - if (Channel->Number()) // don't log raw transponders - esyslog("ERROR: no lock for channel %s on device %d", Channel->ToText(), CardIndex() + 1); + esyslog("ERROR: no lock for channel %d on device %d", Channel->Number(), CardIndex() + 1); return false; } |