summaryrefslogtreecommitdiff
path: root/eitscan.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-24 13:38:28 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-24 13:38:28 +0200
commite26e6b2e5a68be5c98364cc57f097d659edee9e8 (patch)
tree3c7509e9bc5151355cd41f8d5597412e8833f807 /eitscan.c
parent755835ce4439a182519a91855b84f97631561ce1 (diff)
downloadvdr-e26e6b2e5a68be5c98364cc57f097d659edee9e8.tar.gz
vdr-e26e6b2e5a68be5c98364cc57f097d659edee9e8.tar.bz2
Fixed channel switching in the EPG scanner on single device systems
Diffstat (limited to 'eitscan.c')
-rw-r--r--eitscan.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/eitscan.c b/eitscan.c
index a5c1a7b9..f9058cf0 100644
--- a/eitscan.c
+++ b/eitscan.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: eitscan.c 1.12 2003/03/16 13:29:55 kls Exp $
+ * $Id: eitscan.c 1.13 2003/05/24 13:34:59 kls Exp $
*/
#include "eitscan.h"
@@ -12,6 +12,8 @@
#include "channels.h"
#include "dvbdevice.h"
+cEITScanner EITScanner;
+
cEITScanner::cEITScanner(void)
{
lastScan = lastActivity = time(NULL);
@@ -61,8 +63,9 @@ void cEITScanner::Process(void)
if (Channel) {
lastChannel[Device->DeviceNumber()] = Channel->Number();
if (Channel->Sid() && Device->ProvidesChannel(Channel) && !TransponderScanned(Channel)) {
- if (Device == cDevice::PrimaryDevice() && !currentChannel)
+ if (Device == cDevice::PrimaryDevice() && !currentChannel) {
currentChannel = Device->CurrentChannel();
+ }
Device->SwitchChannel(Channel, false);
break;
}