diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-07 15:16:09 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-07 15:16:09 +0100 |
commit | e8ee9a1c4b26c38a46e5872a62cb020473c949c9 (patch) | |
tree | 34b11f6209fef8a2269d2b80dbb85724b85ddd42 /device.c | |
parent | e0d5ebf8fd1d508776d63026a9dd336fbb0d648d (diff) | |
download | vdr-e8ee9a1c4b26c38a46e5872a62cb020473c949c9.tar.gz vdr-e8ee9a1c4b26c38a46e5872a62cb020473c949c9.tar.bz2 |
Adapted c(Dvb)Device::ProvidesCa() to the dynamic CA handling
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.118 2006/01/07 14:09:17 kls Exp $ + * $Id: device.c 1.119 2006/01/07 14:50:45 kls Exp $ */ #include "device.h" @@ -302,7 +302,7 @@ cDevice *cDevice::GetDevice(const cChannel *Channel, int Priority, bool *NeedsDe pri = 6; // receiving with same priority but fewer Ca's else pri = 7; // all others - if (pri < select) { + if (pri <= select) { select = pri; d = device[i]; if (NeedsDetachReceivers) @@ -1147,7 +1147,7 @@ int cDevice::ProvidesCa(const cChannel *Channel) const int Ca = Channel->Ca(); if (Ca == CardIndex() + 1) return 1; // exactly _this_ card was requested - if (Ca && Ca <= MAXDEVICES) + if (Ca && Ca <= CA_DVB_MAX) return 0; // a specific card was requested, but not _this_ one return !Ca; // by default every card can provide FTA } |