Radio/TV channel switch

Message ID 422B51A8.80309@ventoso.org
State New
Headers

Commit Message

Luca Olivetti March 6, 2005, 6:53 p.m. UTC
  Uwe Ortner wrote:

> 
> Thank you, but I forget to mention Im working with 1.3.20 ;)

Then apply these two patches first, and after that the 
vdr-1.3.18-channel-filter.
Bye
  

Patch

--- channels.c.good	2005-01-16 16:22:11.301562790 +0100
+++ channels.c	2005-01-16 16:33:39.220096252 +0100
@@ -980,6 +980,14 @@ 
              groupSep->SetName(buffer, "", "");
              groupSep->SetGroupSep(true);
              Add(groupSep);
+         } else  // find next separator or last channel 
+         {
+             cChannel *nextChannel=Next(groupSep);
+             while (nextChannel &&  !nextChannel->GroupSep())
+             {
+                groupSep=nextChannel;
+                nextChannel=Next(nextChannel);
+             }
          }
          Add(NewChannel, groupSep);
      }