From patchwork Mon Jul 24 15:56:52 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Skawina X-Patchwork-Id: 12364 Received: from djw147.neoplus.adsl.tpnet.pl ([83.24.0.147]) by www.linuxtv.org with esmtp (Exim 4.50) id 1G52oA-0001EJ-FM for vdr@linuxtv.org; Mon, 24 Jul 2006 17:57:26 +0200 Received: (qmail 20806 invoked from network); 24 Jul 2006 15:56:53 -0000 Received: from unknown (HELO ?172.19.43.221?) (172.19.43.221) by 172.19.43.250 with SMTP; 24 Jul 2006 15:56:53 -0000 Message-ID: <44C4EDC4.9040100@o2.pl> Date: Mon, 24 Jul 2006 17:56:52 +0200 From: Artur Skawina User-Agent: Thunderbird 3.0a1 (X11/20060629) MIME-Version: 1.0 To: VDR Mailing List , Frank Schmirler Subject: Re: [vdr] [ANNOUNCE] New plugin epgsync-0.0.1 References: <20060724102611.M46843@schmirler.de> In-Reply-To: <20060724102611.M46843@schmirler.de> 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, 24 Jul 2006 15:57:26 -0000 Status: O X-Status: X-Keywords: X-UID: 10209 Frank Schmirler wrote: > This new plugin allow you to import the EPG of an other VDR. It has been > developed with pure VDR-to-VDR streaming clients in mind, in case you cannot > (or don't want to) mount the server epg.data on the client. However there > might be other cases where it is useful. > > Features: > - Separate thread - works in the background > - Triggered when plugin starts and/or by main menu entry > - Works with SVDRP and VTP > - Two sync modes. The slow mode allows sharing the SVDRP connection with other > local plugins. Thanks for doing this; i've installed this on one client, after a few minutes of tests it does seem to do the job quite well. There's just one problem - during the epg download the client becomes very unresponsive, key presses appear after ~1s and sometimes frames are dropped (it's softdevice-based client). Happens in both epg sync modes. The following change makes most, if not all, of the delays go away. artur --- epgsync-0.0.1.org/thread.c 2006-07-23 10:37:21.000000000 +0000 +++ epgsync-0.0.1/thread.c 2006-07-24 15:26:52.000000000 +0000 @@ -18,6 +18,8 @@ void cEpgSyncThread::Action() { return; } + SetPriority(19); + svdrp.handle = -1; for (int i = 0; svdrp.handle < 0 && i < EpgSyncSetup.connectAttempts && Running(); i++) {