summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-06-10 15:57:33 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-06-10 15:57:33 +0200
commita98f6ca354cad8b459f33be744e2d14eb05603d1 (patch)
tree2cc95bd3d6314c53d4466abcdf6008f336c06175 /menu.c
parentdeb96b372eabf2bc641c05e6beb20671d1047cc6 (diff)
downloadvdr-a98f6ca354cad8b459f33be744e2d14eb05603d1.tar.gz
vdr-a98f6ca354cad8b459f33be744e2d14eb05603d1.tar.bz2
The "Channels" menu now indicates whether a channel is encrypted or a radio channel
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/menu.c b/menu.c
index 1cb389e0..fbacb384 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.35 2017/06/10 15:13:00 kls Exp $
+ * $Id: menu.c 4.36 2017/06/10 15:53:20 kls Exp $
*/
#include "menu.h"
@@ -327,13 +327,15 @@ void cMenuChannelItem::Set(void)
{
cString buffer;
if (!channel->GroupSep()) {
+ const char *X = *channel->Caids() >= CA_ENCRYPTED_MIN ? "X" : "";
+ const char *R = !channel->Vpid() && (*channel->Apids() || *channel->Dpids()) ? "R" : "";
if (sortMode == csmProvider)
- buffer = cString::sprintf("%d\t%s - %s", channel->Number(), channel->Provider(), channel->Name());
+ buffer = cString::sprintf("%d\t%s%s\t%s - %s", channel->Number(), X, R, channel->Provider(), channel->Name());
else
- buffer = cString::sprintf("%d\t%s", channel->Number(), channel->Name());
+ buffer = cString::sprintf("%d\t%s%s\t%s", channel->Number(), X, R, channel->Name());
}
else
- buffer = cString::sprintf("---\t%s ----------------------------------------------------------------", channel->Name());
+ buffer = cString::sprintf("\t\t%s ----------------------------------------------------------------", channel->Name());
SetText(buffer);
}
@@ -369,7 +371,7 @@ public:
};
cMenuChannels::cMenuChannels(void)
-:cOsdMenu(tr("Channels"), CHNUMWIDTH)
+:cOsdMenu(tr("Channels"), CHNUMWIDTH, 3)
{
SetMenuCategory(mcChannel);
number = 0;