From patchwork Mon Jul 10 07:11:22 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Schmirler X-Patchwork-Id: 12355 Received: from mail.linogate.de ([213.179.141.2]) by www.linuxtv.org with esmtp (Exim 4.50) id 1FzpvR-0004GR-MW for vdr@linuxtv.org; Mon, 10 Jul 2006 09:11:25 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.linogate.de with ESMTP id k6A7BNk8028365 for ; Mon, 10 Jul 2006 09:11:23 +0200 From: "Frank Schmirler" To: vdr@linuxtv.org Date: Mon, 10 Jul 2006 09:11:22 +0200 Message-Id: <20060710071122.M7725@schmirler.de> X-Mailer: Open WebMail X-OriginatingIP: 213.179.141.1 (schmirl@linogate.de) MIME-Version: 1.0 Subject: [vdr] Bugfix: AddSchedule not replacing DummySchedule in channels X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jul 2006 07:11:25 -0000 Status: O X-Status: X-Keywords: X-UID: 10037 Hi, since 1.3.39 there's an issue with AddSchedule. If no initial EPG information is available for a channel, it will be associated with a DummySchedule. AddSchedule does not replace it when a schedule becomes available later. A simple fix would be: AddSchedule is only used by the schedule Read functions, so only file or SVDRP based EPG imports are affected. Cheers, Frank --- epg.c.orig 2006-07-09 00:05:37.118736336 +0200 +++ epg.c 2006-07-09 00:10:05.370955800 +0200 @@ -1023,6 +1023,9 @@ if (!p) { p = new cSchedule(ChannelID); Add(p); + cChannel *channel = Channels.GetByChannelID(ChannelID); + if (channel) + channel->schedule = p; } return p; }