align tuner number (starting internally with 0) with VDR numbering (starting with 1)

This commit is contained in:
Peter Bieringer
2021-01-27 20:34:30 +01:00
committed by kamel5
parent 4500b62b5c
commit 83c85870fb
2 changed files with 5 additions and 2 deletions

View File

@@ -326,7 +326,7 @@ bool cVeDevices::Parse(bool forced) {
if (!device || !device->NumProvidedSystems()) {
continue;
}
tokenContainer->AddLoopToken(devicesIndex, i, (int)eDevicesLT::num, *cString::sprintf("%d", i));
tokenContainer->AddLoopToken(devicesIndex, i, (int)eDevicesLT::num, *cString::sprintf("%d", i + 1));
tokenContainer->AddLoopToken(devicesIndex, i, (int)eDevicesLT::type, *(device->DeviceType()));
cCamSlot *camSlot = device->CamSlot();
@@ -538,4 +538,4 @@ bool cVeVolume::Parse(bool forced) {
changed = false;
SetDirty();
return true;
}
}