From 19efbe45031cc5015e92d5dbffb018cf0cbcbd8d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 9 Sep 2003 16:09:05 +0200 Subject: Fixed dropping out of replay mode while viewing a recording that is still going on --- recording.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'recording.c') 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) { -- cgit v1.2.3