summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-10-07 12:50:24 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-10-07 12:50:24 +0200
commit09c6bced8db2567c60896457e4b7e761f37d87c3 (patch)
treedc0f4f50fc74486d982b128627539143fa6a92dd /recording.c
parentf951fb2f9c83797e2df1f0dd2884cc1dfb46493e (diff)
downloadvdr-09c6bced8db2567c60896457e4b7e761f37d87c3.tar.gz
vdr-09c6bced8db2567c60896457e4b7e761f37d87c3.tar.bz2
Fixed handling video directory updates in case an other process has touched the .update file after the last NeedsUpdate() check
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index e60c4782..5298de3f 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.150 2006/09/16 12:12:34 kls Exp $
+ * $Id: recording.c 1.151 2006/10/07 12:46:22 kls Exp $
*/
#include "recording.h"
@@ -941,8 +941,10 @@ bool cRecordings::StateChanged(int &State)
void cRecordings::TouchUpdate(void)
{
+ bool needsUpdate = NeedsUpdate();
TouchFile(UpdateFileName());
- lastUpdate = time(NULL); // make sure we don't tigger ourselves
+ if (!needsUpdate)
+ lastUpdate = time(NULL); // make sure we don't tigger ourselves
}
bool cRecordings::NeedsUpdate(void)