summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-09-09 16:09:05 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-09-09 16:09:05 +0200
commit19efbe45031cc5015e92d5dbffb018cf0cbcbd8d (patch)
treedd92fdce3713dcdeaa9d60319d053ecf5261d0f5 /recording.c
parentec78dbe9e4ac4aaeaebed94fe80833e0a1ed5abc (diff)
downloadvdr-19efbe45031cc5015e92d5dbffb018cf0cbcbd8d.tar.gz
vdr-19efbe45031cc5015e92d5dbffb018cf0cbcbd8d.tar.bz2
Fixed dropping out of replay mode while viewing a recording that is still going on
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/recording.c b/recording.c
index bcbfd9f6..6d01ffa4 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.82 2003/08/17 09:10:46 kls Exp $
+ * $Id: recording.c 1.83 2003/09/09 16:02:55 kls Exp $
*/
#include "recording.h"
@@ -859,6 +859,7 @@ bool cIndexFile::CatchUp(int Index)
{
// returns true unless something really goes wrong, so that 'index' becomes NULL
if (index && f >= 0) {
+ cMutexLock MutexLock(&mutex);
for (int i = 0; i <= MAXINDEXCATCHUP && (Index < 0 || Index >= last); i++) {
struct stat buf;
if (fstat(f, &buf) == 0) {