summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-10-21 13:36:27 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-10-21 13:36:27 +0200
commit74016967e4c947bb7f58fa82865b4587f0014ff0 (patch)
tree87f6478f15b50bcc9ff958bbe932d60fbbfef439 /thread.c
parent9fc8c13d60420d240f771a8f809f37734ebcb9ab (diff)
downloadvdr-74016967e4c947bb7f58fa82865b4587f0014ff0.tar.gz
vdr-74016967e4c947bb7f58fa82865b4587f0014ff0.tar.bz2
Fixed handling trick modes near the beginning and end of a recording
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 878d769a..b51489ec 100644
--- a/thread.c
+++ b/thread.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.c 1.14 2001/10/20 10:26:35 kls Exp $
+ * $Id: thread.c 1.15 2001/10/21 12:25:31 kls Exp $
*/
#include "thread.h"
@@ -161,7 +161,7 @@ void cThread::Cancel(int WaitSeconds)
bool cThread::Lock(void)
{
- if (!lockingPid || lockingPid != getpid()) {
+ if (getpid() != lockingPid || !locked) {
Mutex.Lock();
lockingPid = getpid();
}