[vdr] [PATCH] text2skin - show partial channel numbers whilst changing channels

Chris Warren dvb at ixalon.net
Sat Dec 17 16:06:59 CET 2005


Hi all,

Please find attached a patch against the latest CVS version of the text2skin
plugin which makes it show partial channel numbers whilst changing channels.

The ChannelNumber(const cChannel *Channel, int Number) function performs a
check for Channel being null and displays the partial channel number
appended by "-" when it is. However it's never called when Channel is null
due to a check in display.c.

Chris

--- text2skin.orig/display.c    2005-12-17 14:56:22.637342464 +0000
+++ text2skin/display.c 2005-12-17 14:56:56.975122328 +0000
@@ -116,9 +116,7 @@
 {
        switch (Token.Type) {
        case tChannelNumber:
-               return mChannel != NULL
-                      ? (cxType)ChannelNumber(mChannel, mNumber)
-                      : (cxType)false;
+               return ChannelNumber(mChannel, mNumber);

        case tChannelName:
                return mChannel != NULL




More information about the vdr mailing list