mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
The index file is now closed after initially reading it if it is older than 3600 seconds
This commit is contained in:
parent
79dad980cf
commit
a906cd52df
1
HISTORY
1
HISTORY
@ -7546,3 +7546,4 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed a leftover line in case a two line subtitle was followed by a one line
|
- Fixed a leftover line in case a two line subtitle was followed by a one line
|
||||||
subtitle on the dvbhddevice in "high level" OSD mode.
|
subtitle on the dvbhddevice in "high level" OSD mode.
|
||||||
- Returning 0 from cDvbSdFfDevice::NumProvidedSystems() if option --outputonly is given.
|
- Returning 0 from cDvbSdFfDevice::NumProvidedSystems() if option --outputonly is given.
|
||||||
|
- The index file is now closed after initially reading it if it is older than 3600 seconds.
|
||||||
|
10
recording.c
10
recording.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: recording.c 2.83 2013/01/16 14:17:44 kls Exp $
|
* $Id: recording.c 2.84 2013/01/25 14:31:04 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "recording.h"
|
#include "recording.h"
|
||||||
@ -1743,12 +1743,14 @@ cIndexFile::cIndexFile(const char *FileName, bool Record, bool IsPesRecording, b
|
|||||||
esyslog("ERROR: can't read from file '%s'", *fileName);
|
esyslog("ERROR: can't read from file '%s'", *fileName);
|
||||||
free(index);
|
free(index);
|
||||||
index = NULL;
|
index = NULL;
|
||||||
|
}
|
||||||
|
else if (isPesRecording)
|
||||||
|
ConvertFromPes(index, size);
|
||||||
|
if (!index || time(NULL) - buf.st_mtime >= MININDEXAGE) {
|
||||||
close(f);
|
close(f);
|
||||||
f = -1;
|
f = -1;
|
||||||
}
|
}
|
||||||
// we don't close f here, see CatchUp()!
|
// otherwise we don't close f here, see CatchUp()!
|
||||||
else if (isPesRecording)
|
|
||||||
ConvertFromPes(index, size);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LOG_ERROR_STR(*fileName);
|
LOG_ERROR_STR(*fileName);
|
||||||
|
Loading…
Reference in New Issue
Block a user