diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-06 10:25:42 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-06 10:25:42 +0200 |
commit | 962596f4abc3790ac0f3f317079a3362210fff8f (patch) | |
tree | b9428aea092f90731b389604fcc8540070dbf556 /eitscan.c | |
parent | b7615a7ae144789da14d32019b2f86fc4bf6dcef (diff) | |
download | vdr-962596f4abc3790ac0f3f317079a3362210fff8f.tar.gz vdr-962596f4abc3790ac0f3f317079a3362210fff8f.tar.bz2 |
Modified channel handling; full DiSEqC support
Diffstat (limited to 'eitscan.c')
-rw-r--r-- | eitscan.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -4,11 +4,12 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: eitscan.c 1.7 2002/09/08 11:08:52 kls Exp $ + * $Id: eitscan.c 1.8 2002/10/05 13:44:35 kls Exp $ */ #include "eitscan.h" #include <stdlib.h> +#include "channels.h" #include "dvbdevice.h" cEITScanner::cEITScanner(void) @@ -28,11 +29,11 @@ cEITScanner::~cEITScanner() bool cEITScanner::TransponderScanned(cChannel *Channel) { for (int i = 0; i < numTransponders; i++) { - if (transponders[i] == Channel->frequency) + if (transponders[i] == Channel->Frequency()) return true; } transponders = (int *)realloc(transponders, ++numTransponders * sizeof(int)); - transponders[numTransponders - 1] = Channel->frequency; + transponders[numTransponders - 1] = Channel->Frequency(); return false; } @@ -66,7 +67,7 @@ void cEITScanner::Process(void) if (Channel) { if (!Device->ProvidesChannel(Channel)) break; - if (Channel->pnr && !TransponderScanned(Channel)) { + if (Channel->Sid() && !TransponderScanned(Channel)) { if (Device == cDevice::PrimaryDevice() && !currentChannel) currentChannel = Device->CurrentChannel(); Device->SwitchChannel(Channel, false); |