mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Moved ProvidesEIT() check further up
This commit is contained in:
parent
6b5e9f56ed
commit
e4892e536c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: eitscan.c 2.3 2011/08/26 12:58:49 kls Exp $
|
* $Id: eitscan.c 2.4 2011/08/26 13:10:00 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "eitscan.h"
|
#include "eitscan.h"
|
||||||
@ -143,10 +143,10 @@ void cEITScanner::Process(void)
|
|||||||
bool AnyDeviceSwitched = false;
|
bool AnyDeviceSwitched = false;
|
||||||
for (int i = 0; i < cDevice::NumDevices(); i++) {
|
for (int i = 0; i < cDevice::NumDevices(); i++) {
|
||||||
cDevice *Device = cDevice::GetDevice(i);
|
cDevice *Device = cDevice::GetDevice(i);
|
||||||
if (Device) {
|
if (Device && Device->ProvidesEIT()) {
|
||||||
for (cScanData *ScanData = scanList->First(); ScanData; ScanData = scanList->Next(ScanData)) {
|
for (cScanData *ScanData = scanList->First(); ScanData; ScanData = scanList->Next(ScanData)) {
|
||||||
const cChannel *Channel = ScanData->GetChannel();
|
const cChannel *Channel = ScanData->GetChannel();
|
||||||
if (Channel && Device->ProvidesEIT()) {
|
if (Channel) {
|
||||||
if (!Channel->Ca() || Channel->Ca() == Device->DeviceNumber() + 1 || Channel->Ca() >= CA_ENCRYPTED_MIN) {
|
if (!Channel->Ca() || Channel->Ca() == Device->DeviceNumber() + 1 || Channel->Ca() >= CA_ENCRYPTED_MIN) {
|
||||||
if (Device->ProvidesTransponder(Channel)) {
|
if (Device->ProvidesTransponder(Channel)) {
|
||||||
if (!Device->Receiving()) {
|
if (!Device->Receiving()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user