[vdr] [PATCH] Hang when moving between editing marks
Darren Salt
linux at youmustbejoking.demon.co.uk
Sat Mar 26 01:21:37 CET 2005
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 ;-)
--
| Darren Salt | nr. Ashington, | d youmustbejoking,demon,co,uk
| Debian, | Northumberland | s zap,tartarus,org
| RISC OS | Toon Army | @
| Retrocomputing: a PC card in a Risc PC
A shortcut is the longest path between two points.
-------------- next part --------------
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_livelock.dpatch by Timothy Baldwin <T.E.Baldwin99 at members.leeds.ac.uk>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix a livelock problem when jumping between editing marks.
@DPATCH@
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:
More information about the vdr
mailing list