summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2019-05-28 15:54:22 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2019-05-28 15:54:22 +0200
commitc2634a7ccf815bedc26671b803dc571f0544fc73 (patch)
treea1624fe6c0da3ffbdbbbd3d37f4dfd4b1b645e79 /menu.c
parente8ae4afd0961cc93cbca3830fe065f6da9d806c9 (diff)
downloadvdr-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 'menu.c')
-rw-r--r--menu.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/menu.c b/menu.c
index 22bdab57..76095481 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 4.79 2019/03/18 16:14:06 kls Exp $
+ * $Id: menu.c 4.80 2019/05/28 15:24:43 kls Exp $
*/
#include "menu.h"
@@ -3892,16 +3892,16 @@ bool cMenuSetupCAMItem::Changed(void)
else if (camSlot->IsActivating())
// TRANSLATORS: note the leading blank!
Activating = tr(" (activating)");
- cVector<int> CardIndexes;
+ cVector<int> DeviceNumbers;
for (cCamSlot *CamSlot = CamSlots.First(); CamSlot; CamSlot = CamSlots.Next(CamSlot)) {
if (CamSlot == camSlot || CamSlot->MasterSlot() == camSlot)
- CamSlot->Devices(CardIndexes);
+ CamSlot->Devices(DeviceNumbers);
}
- if (CardIndexes.Size() > 0) {
+ if (DeviceNumbers.Size() > 0) {
AssignedDevice = cString::sprintf(" %s", tr("@ device"));
- CardIndexes.Sort(CompareInts);
- for (int i = 0; i < CardIndexes.Size(); i++)
- AssignedDevice = cString::sprintf("%s %d", *AssignedDevice, CardIndexes[i] + 1);
+ DeviceNumbers.Sort(CompareInts);
+ for (int i = 0; i < DeviceNumbers.Size(); i++)
+ AssignedDevice = cString::sprintf("%s %d", *AssignedDevice, DeviceNumbers[i]);
}
cString buffer = cString::sprintf(" %d %s%s%s", camSlot->SlotNumber(), CamName, *AssignedDevice, Activating);
@@ -5231,7 +5231,7 @@ cRecordControl::cRecordControl(cDevice *Device, cTimers *Timers, cTimer *Timer,
if (!timer) {
timer = new cTimer(true, Pause);
Timers->Add(timer);
- instantId = cString::sprintf(cDevice::NumDevices() > 1 ? "%s - %d" : "%s", timer->Channel()->Name(), device->CardIndex() + 1);
+ instantId = cString::sprintf(cDevice::NumDevices() > 1 ? "%s - %d" : "%s", timer->Channel()->Name(), device->DeviceNumber() + 1);
}
timer->SetPending(true);
timer->SetRecording(true);