mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Implemented a 10 seconds latency when removing files
This commit is contained in:
parent
ca42f7c8f1
commit
ec5f332a5b
1
HISTORY
1
HISTORY
@ -304,3 +304,4 @@ Video Disk Recorder Revision History
|
||||
currently recording or replaying.
|
||||
- Now shifting the 'Subtitle' info into the 'ExtendedDescription' on stations
|
||||
that don't send the EIT information correctly (like, e.g., 'VOX').
|
||||
- Implemented a 10 seconds latency when removing files.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: recording.c 1.20 2000/11/01 16:00:36 kls Exp $
|
||||
* $Id: recording.c 1.21 2000/11/18 16:22:29 kls Exp $
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
@ -32,6 +32,7 @@
|
||||
#define MINDISKSPACE 1024 // MB
|
||||
|
||||
#define DISKCHECKDELTA 300 // seconds between checks for free disk space
|
||||
#define REMOVELATENCY 10 // seconds to wait until next check after removing a file
|
||||
|
||||
void AssertFreeDiskSpace(void)
|
||||
{
|
||||
@ -51,9 +52,11 @@ void AssertFreeDiskSpace(void)
|
||||
r0 = r;
|
||||
r = Recordings.Next(r);
|
||||
}
|
||||
if (r0 && r0->Remove())
|
||||
if (r0 && r0->Remove()) {
|
||||
LastFreeDiskCheck += REMOVELATENCY;
|
||||
return;
|
||||
}
|
||||
}
|
||||
// No "deleted" files to remove, so let's see if we can delete a recording:
|
||||
if (Recordings.Load(false)) {
|
||||
cRecording *r = Recordings.First();
|
||||
|
Loading…
Reference in New Issue
Block a user