1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed minimum lifespan of deleted recordings

This commit is contained in:
Klaus Schmidinger 2003-04-27 15:56:04 +02:00
parent a804b990fe
commit 249a4ab959
4 changed files with 9 additions and 4 deletions

View File

@ -495,6 +495,7 @@ Jaakko Hyv
for adding a check if there is a connection to the keyboard for adding a check if there is a connection to the keyboard
for fixing recording overlapping timers on the same channel in case for fixing recording overlapping timers on the same channel in case
DO_REC_AND_PLAY_ON_PRIMARY_DEVICE and/or DO_MULTIPLE_RECORDINGS is not defined DO_REC_AND_PLAY_ON_PRIMARY_DEVICE and/or DO_MULTIPLE_RECORDINGS is not defined
for fixing the minimum lifespan of deleted recordings
Dennis Noordsij <dennis.noordsij@wiral.com> Dennis Noordsij <dennis.noordsij@wiral.com>
for reporting a small glitch when switching channels for reporting a small glitch when switching channels

View File

@ -2084,3 +2084,7 @@ Video Disk Recorder Revision History
- The new SVDRP command STAT can be used to request information about the disk - The new SVDRP command STAT can be used to request information about the disk
usage (thanks to Thomas Koch). usage (thanks to Thomas Koch).
- Fixed faulty calculation of section length in eit.c (thanks to Teemu Rantanen). - Fixed faulty calculation of section length in eit.c (thanks to Teemu Rantanen).
2003-04-27: Version 1.1.30
- Fixed minimum lifespan of deleted recordings (thanks to Jaakko Hyvätti).

View File

@ -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: config.h 1.154 2003/04/21 16:23:15 kls Exp $ * $Id: config.h 1.155 2003/04/27 15:56:04 kls Exp $
*/ */
#ifndef __CONFIG_H #ifndef __CONFIG_H
@ -19,7 +19,7 @@
#include "device.h" #include "device.h"
#include "tools.h" #include "tools.h"
#define VDRVERSION "1.1.29" #define VDRVERSION "1.1.30"
#define MAXPRIORITY 99 #define MAXPRIORITY 99
#define MAXLIFETIME 99 #define MAXLIFETIME 99

View File

@ -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 1.75 2003/04/12 09:51:44 kls Exp $ * $Id: recording.c 1.76 2003/04/27 15:52:17 kls Exp $
*/ */
#include "recording.h" #include "recording.h"
@ -78,7 +78,7 @@ void RemoveDeletedRecordings(void)
r0 = r; r0 = r;
r = Recordings.Next(r); r = Recordings.Next(r);
} }
if (r0 && time(NULL) - r0->start > DELETEDLIFETIME * 60) { if (r0 && time(NULL) - r0->start > DELETEDLIFETIME * 3600) {
r0->Remove(); r0->Remove();
RemoveEmptyVideoDirectories(); RemoveEmptyVideoDirectories();
LastRemoveCheck += REMOVELATENCY; LastRemoveCheck += REMOVELATENCY;