summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-01-13 12:14:51 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2007-01-13 12:14:51 +0100
commit7751b6abb0b90a3d0961856e76c67b85aab66cf5 (patch)
tree04c4276125ccb9ba9d0ad3a80175330e10140218 /device.c
parent87dd5139ff6666d64e7e343bcff632b342c4c814 (diff)
downloadvdr-7751b6abb0b90a3d0961856e76c67b85aab66cf5.tar.gz
vdr-7751b6abb0b90a3d0961856e76c67b85aab66cf5.tar.bz2
Added cDevice::HasCi() so that devices with Common Interface can be avoided when tuning to an FTA channel
Diffstat (limited to 'device.c')
-rw-r--r--device.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/device.c b/device.c
index a9ff0afb..dc9af593 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 1.138 2007/01/07 14:41:07 kls Exp $
+ * $Id: device.c 1.139 2007/01/13 12:05:00 kls Exp $
*/
#include "device.h"
@@ -334,6 +334,7 @@ cDevice *cDevice::GetDevice(const cChannel *Channel, int Priority, bool LiveView
imp <<= 8; imp |= min(max((NumUsableSlots ? SlotPriority[j] : 0) + MAXPRIORITY, 0), 0xFF); // use the CAM slot with the lowest priority (+MAXPRIORITY to assure that values -99..99 can be used)
imp <<= 1; imp |= ndr; // avoid devices if we need to detach existing receivers
imp <<= 1; imp |= device[i]->IsPrimaryDevice(); // avoid the primary device
+ imp <<= 1; imp |= NumUsableSlots ? 0 : device[i]->HasCi(); // avoid cards with Common Interface for FTA channels
imp <<= 1; imp |= device[i]->HasDecoder(); // avoid full featured cards
imp <<= 1; imp |= NumUsableSlots ? !ChannelCamRelations.CamDecrypt(Channel->GetChannelID(), j + 1) : 0; // prefer CAMs that are known to decrypt this channel
if (imp < Impact) {
@@ -367,6 +368,11 @@ cDevice *cDevice::GetDevice(const cChannel *Channel, int Priority, bool LiveView
return d;
}
+bool cDevice::HasCi(void)
+{
+ return false;
+}
+
void cDevice::SetCamSlot(cCamSlot *CamSlot)
{
camSlot = CamSlot;