From c2634a7ccf815bedc26671b803dc571f0544fc73 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 28 May 2019 15:54:22 +0200 Subject: Fixed inconsistent behavior in case only certain devices are used (selected by the '-D' option) --- ci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ci.c') diff --git a/ci.c b/ci.c index 8c4d7c6b..36864522 100644 --- a/ci.c +++ b/ci.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: ci.c 4.25 2019/05/06 11:47:42 kls Exp $ + * $Id: ci.c 4.26 2019/05/28 15:01:29 kls Exp $ */ #include "ci.h" @@ -2233,14 +2233,14 @@ bool cCamSlot::Assign(cDevice *Device, bool Query) return false; } -bool cCamSlot::Devices(cVector &CardIndexes) +bool cCamSlot::Devices(cVector &DeviceNumbers) { cMutexLock MutexLock(&mutex); if (mtdHandler) - return mtdHandler->Devices(CardIndexes); + return mtdHandler->Devices(DeviceNumbers); if (assignedDevice) - CardIndexes.Append(assignedDevice->CardIndex()); - return CardIndexes.Size() > 0; + DeviceNumbers.Append(assignedDevice->DeviceNumber()); + return DeviceNumbers.Size() > 0; } void cCamSlot::NewConnection(void) -- cgit v1.2.3