From patchwork Fri Sep 30 20:34:40 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: rollercoaster@reel-multimedia.com X-Patchwork-Id: 12049 Received: from 213-239-210-49.clients.your-server.de ([213.239.210.49] helo=reelbox.de ident=postfix) by www.linuxtv.org with esmtp (Exim 4.50) id 1ELRaq-0006sc-34 for vdr@linuxtv.org; Fri, 30 Sep 2005 22:34:56 +0200 Received: from RollerCoaster (p5496E59A.dip.t-dialin.net [84.150.229.154]) by reelbox.de (Postfix) with ESMTP id 76FF8804005 for ; Fri, 30 Sep 2005 22:34:41 +0200 (CEST) From: rollercoaster@reel-multimedia.com Organization: Reel Multimedia AG To: VDR Mailing list Subject: Re: [vdr] Interactive plugins and MENUTIMEOUT since 1.3.32 Date: Fri, 30 Sep 2005 22:34:40 +0200 User-Agent: KMail/1.7.1 References: <200509301943.09409.rollercoaster@reel-multimedia.com> <433D88F9.5050003@ventoso.org> In-Reply-To: <433D88F9.5050003@ventoso.org> MIME-Version: 1.0 Message-Id: <200509302234.40561.rollercoaster@reel-multimedia.com> 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: Fri, 30 Sep 2005 20:34:56 -0000 Status: O X-Status: X-Keywords: X-UID: 5250 > > in 1.3.32 the timeout of the menu is now handled in the main loop > > (vdr.c). this causes some plugins (in this case: channelscan) to be > > closed after MENUTIMEOUT what is sometimes not wanted... > > Modify the plugin to return osContinue when there's no keypress. thanks, it works, even if i still do not understand the intention of osContinue... cheers, thiemo attached the patch for channelscan 0.1.0 --- channelscan.c.org 2005-09-26 11:52:25.000000000 +0200 +++ channelscan.c 2005-09-30 22:15:15.000000000 +0200 @@ -179,14 +179,15 @@ //--------- Destuctor ~cMainMenu ----------------------------------- cMainMenu::~cMainMenu() { + ScanStat = aborted; Cancel(3); - // fd frontend schließen + // fd frontend schließen if (fd_frontend > 0) close(fd_frontend); // ? scanning_on_receiving_device = false; scanning_by_channelscan = false; - delete osd; + delete osd; if (PFilter) cDevice::GetDevice(cardnr)->Detach(PFilter); if (SFilter) @@ -394,14 +395,13 @@ if (srcIndex < 0) srcIndex = 0; } - break; - default: return state; - } - state = osContinue; - Show(); - + break; + default: return osContinue; + } + state = osContinue; + Show(); } - + return state; }