diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-24 13:38:28 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-24 13:38:28 +0200 |
commit | e26e6b2e5a68be5c98364cc57f097d659edee9e8 (patch) | |
tree | 3c7509e9bc5151355cd41f8d5597412e8833f807 /eitscan.c | |
parent | 755835ce4439a182519a91855b84f97631561ce1 (diff) | |
download | vdr-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; } |