diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2019-05-28 15:54:22 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2019-05-28 15:54:22 +0200 |
commit | c2634a7ccf815bedc26671b803dc571f0544fc73 (patch) | |
tree | a1624fe6c0da3ffbdbbbd3d37f4dfd4b1b645e79 /ci.c | |
parent | e8ae4afd0961cc93cbca3830fe065f6da9d806c9 (diff) | |
download | vdr-c2634a7ccf815bedc26671b803dc571f0544fc73.tar.gz vdr-c2634a7ccf815bedc26671b803dc571f0544fc73.tar.bz2 |
Fixed inconsistent behavior in case only certain devices are used (selected by the '-D' option)
Diffstat (limited to 'ci.c')
-rw-r--r-- | ci.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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<int> &CardIndexes) +bool cCamSlot::Devices(cVector<int> &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) |