Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Improved fix for lcdproc plugin (channel name disappearing with Elchi Patch)



Please forget my previous posting, suggesting to change menu.c:

-  cStatus::MsgOsdChannel(buffer);
+  cStatus::MsgOsdChannel(buffer + 1);

as it sometimes (depending on the patch being used) swallows the first
character of channel groups.

Instead, it makes much more sense to apply the following change to
PLUGINS/src/lcdproc-0.0.9/lcdproc.c:


--------------------------

--- lcdproc.c.orig	Sat Mar  8 09:57:49 2003
+++ lcdproc.c	Tue May 27 16:46:16 2003
@@ -173,7 +173,7 @@
   //syslog(LOG_INFO, "lcdproc: cLcdFeed::OsdChannel %s", Text);
   LCDproc->SetLineC(1,1,Text);

-  bool switching = group = !isdigit(Text[0]);
+  bool switching = group = !isdigit(Text[0]) && !(isdigit(Text[1]) &&
Text[0]==' ');
   if (!group) strcpy(tempstringbuffer,Text);
   for (unsigned int i=0; ( i<strlen(Text)-1 ) && !switching  ; i++) {
      switching= isdigit(Text[i]) && Text[i+1]=='-'  ;


----------------------------


Greetings
Stephan





-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index