mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed handling video directory updates in case an other process has touched the .update file after the last NeedsUpdate() check
This commit is contained in:
parent
f951fb2f9c
commit
09c6bced8d
@ -1823,6 +1823,8 @@ Petri Hintukainen <Petri.Hintukainen@hut.fi>
|
||||
the Makefile to avoid a crash in case a new version is installed on a running system
|
||||
for fixing handling video directory updates in case the timestamp of the .update
|
||||
file is in the future
|
||||
for fixing handling video directory updates in case an other process has touched the
|
||||
.update file after the last NeedsUpdate() check
|
||||
|
||||
Marcel Schaeben <mts280@gmx.de>
|
||||
for his "Easy Input" patch
|
||||
|
2
HISTORY
2
HISTORY
@ -4943,3 +4943,5 @@ Video Disk Recorder Revision History
|
||||
Juza for reporting that events without an ExtendedEventDescriptor may get
|
||||
duplicate information in their ShortText through the EPG bugfixes in case they
|
||||
are received again).
|
||||
- Fixed handling video directory updates in case an other process has touched the
|
||||
.update file after the last NeedsUpdate() check (thanks to Petri Hintukainen).
|
||||
|
@ -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,7 +941,9 @@ bool cRecordings::StateChanged(int &State)
|
||||
|
||||
void cRecordings::TouchUpdate(void)
|
||||
{
|
||||
bool needsUpdate = NeedsUpdate();
|
||||
TouchFile(UpdateFileName());
|
||||
if (!needsUpdate)
|
||||
lastUpdate = time(NULL); // make sure we don't tigger ourselves
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user