summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-06-07 12:56:19 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-06-07 12:56:19 +0200
commit50076b805937e8c4bb3b6aa2e7650c42eb7b9695 (patch)
tree194eaf680917bdeeb90a52bf08f6d1971bcc5575 /menu.c
parent9652b45809f9ae9da4e942d69017899d2597be2d (diff)
downloadvdr-50076b805937e8c4bb3b6aa2e7650c42eb7b9695.tar.gz
vdr-50076b805937e8c4bb3b6aa2e7650c42eb7b9695.tar.bz2
Fixed device handling in the CICAM menu in case a VDR instance was started with a specific device using the -D option
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index 1e4a88f6..5a509345 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 1.255 2003/06/06 14:59:47 kls Exp $
+ * $Id: menu.c 1.256 2003/06/07 12:31:57 kls Exp $
*/
#include "menu.h"
@@ -2109,8 +2109,9 @@ cMenuSetupCICAM::cMenuSetupCICAM(void)
for (int d = 0; d < cDevice::NumDevices(); d++) {
for (int i = 0; i < 2; i++) {
char buffer[32];
- snprintf(buffer, sizeof(buffer), "%s%d %d", tr("Setup.CICAM$CICAM DVB"), d + 1, i + 1);
- Add(new cMenuEditCaItem(buffer, &data.CaCaps[d][i]));
+ int CardIndex = cDevice::GetDevice(d)->CardIndex();
+ snprintf(buffer, sizeof(buffer), "%s%d %d", tr("Setup.CICAM$CICAM DVB"), CardIndex + 1, i + 1);
+ Add(new cMenuEditCaItem(buffer, &data.CaCaps[CardIndex][i]));
}
}
SetHelpKeys();