From patchwork Sat Mar 26 00:21:37 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Salt X-Patchwork-Id: 11823 Received: from anchor-post-30.mail.demon.net ([194.217.242.88]) by www.linuxtv.org with esmtp (Exim 4.34) id 1DEzHc-00052c-Hn for vdr@linuxtv.org; Sat, 26 Mar 2005 01:36:08 +0100 Received: from youmustbejoking.demon.co.uk ([212.228.127.8] helo=pentagram.youmustbejoking.demon.co.uk) by anchor-post-30.mail.demon.net with esmtp (Exim 4.42) id 1DEzHl-000N4T-33 for vdr@linuxtv.org; Sat, 26 Mar 2005 00:36:18 +0000 Received: from [192.168.0.2] (helo=riscpc) by pentagram.youmustbejoking.demon.co.uk with esmtp (Exim 4.44) id 1DEzHj-0002c9-GX for vdr@linuxtv.org; Sat, 26 Mar 2005 00:36:15 +0000 Date: Sat, 26 Mar 2005 00:21:37 +0000 From: Darren Salt To: vdr@linuxtv.org Message-ID: <4D516C3CF4%linux@youmustbejoking.demon.co.uk> User-Agent: Messenger-Pro/3.13b10 (MsgServe/3.03) (RISC-OS/4.02) POPstar/2.06-ds.3 X-Editor: Zap 1.46 (23 Oct 2004) [TEST], ZapEmail 0.28.3 (03 Feb 2005) (32) X-SDate: Sat, 4225 Sep 1993 00:21:37 +0000 X-Message-Flag: Outlook Express is broken. Upgrade to mail(1). MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.0.2 X-SA-Exim-Mail-From: linux@youmustbejoking.demon.co.uk X-SA-Exim-Scanned: No (on pentagram.youmustbejoking.demon.co.uk); SAEximRunCond expanded to false Subject: [vdr] [PATCH] Hang when moving between editing marks 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: Sat, 26 Mar 2005 00:36:08 -0000 Status: O X-Status: X-Keywords: X-UID: 1101 The attached patch should fix a hang (livelock) which can occur when moving between editing marks. Blame Timothy Baldwin if it doesn't work - he suggested it ;-) diff -urNad vdr-1.3.23/dvbplayer.c /tmp/dpep.odvcge/vdr-1.3.23/dvbplayer.c --- vdr-1.3.23/dvbplayer.c 2005-03-25 23:45:25.789555968 +0000 +++ /tmp/dpep.odvcge/vdr-1.3.23/dvbplayer.c 2005-03-25 23:53:11.273645683 +0000 @@ -376,6 +376,7 @@ cPoller Poller; if (DevicePoll(Poller, 100)) { + sched_yield(); LOCK_THREAD; // Read the next frame from the file: