diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-10-21 13:36:27 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-10-21 13:36:27 +0200 |
commit | 74016967e4c947bb7f58fa82865b4587f0014ff0 (patch) | |
tree | 87f6478f15b50bcc9ff958bbe932d60fbbfef439 /thread.c | |
parent | 9fc8c13d60420d240f771a8f809f37734ebcb9ab (diff) | |
download | vdr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); } |