From patchwork Sun Mar 6 18:53:28 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Olivetti X-Patchwork-Id: 11799 Received: from 232.red-213-97-27.pooles.rima-tde.net ([213.97.27.232]) by www.linuxtv.org with esmtp (Exim 4.34) id 1D80t6-0003dw-5T for vdr@linuxtv.org; Sun, 06 Mar 2005 19:54:00 +0100 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by 232.Red-213-97-27.pooles.rima-tde.net (Postfix) with ESMTP id 5320D18A50DB for ; Sun, 6 Mar 2005 19:53:35 +0100 (CET) Message-ID: <422B51A8.80309@ventoso.org> Date: Sun, 06 Mar 2005 19:53:28 +0100 From: Luca Olivetti User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Klaus Schmidinger's VDR Subject: Re: [vdr] Radio/TV channel switch References: <1110102738.3748.2.camel@berlin.classic-net.de> <422AE018.7050701@ventoso.org> <1110127179.4848.4.camel@berlin.classic-net.de> In-Reply-To: <1110127179.4848.4.camel@berlin.classic-net.de> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2005 18:54:00 -0000 Status: O X-Status: X-Keywords: X-UID: 548 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 --- 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); }