Mailing List archive

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

[vdr] [PATCH] vdrcd plugin for 1.3.18



Hi.

I made a quick patch for the vdrcd-0.0.10 plugin to make it work with 
vdr-1.3.18.
Download it at http://www.schnapsleichen.de/vdr-1.3.18-vdrcd-fix.diff or see 
attachment.

S.
diff -Naur vdrcd-0.0.10/vdrcd.c vdrcd-0.0.666/vdrcd.c
--- vdrcd-0.0.10/vdrcd.c	2004-07-12 22:26:12.000000000 +0200
+++ vdrcd-0.0.666/vdrcd.c	2005-01-13 20:10:09.787394960 +0100
@@ -176,7 +176,12 @@
   FILE *p = popen(cmd, "r");
   if (p) {
     char *s;
+#if VDRVERSNUM < 10318
     while ((s = readline(p)) != NULL) {
+#else
+    cReadLine rl;
+    while ((s=rl.Read(p)) != NULL) {
+#endif
     	if(strcmp(s,"")!=0) cnt++;
     }
   }

Home | Main Index | Thread Index