mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
No longer trying to delete old recordings in AssertFreeDiskSpace() if the given Priority is less than 1
This commit is contained in:
parent
acdfbb5aad
commit
77da7bb20c
2
HISTORY
2
HISTORY
@ -7816,3 +7816,5 @@ Video Disk Recorder Revision History
|
||||
2013-08-21: Version 2.0.3
|
||||
|
||||
- Fixed asserting free disk space in the cutter.
|
||||
- No longer trying to delete old recordings in AssertFreeDiskSpace() if the given
|
||||
Priority is less than 1.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: recording.c 2.91.1.1 2013/04/11 08:20:03 kls Exp $
|
||||
* $Id: recording.c 2.91.1.2 2013/08/21 13:58:35 kls Exp $
|
||||
*/
|
||||
|
||||
#include "recording.h"
|
||||
@ -178,6 +178,7 @@ void AssertFreeDiskSpace(int Priority, bool Force)
|
||||
return; // the next call will actually remove it
|
||||
}
|
||||
// No "deleted" files to remove, so let's see if we can delete a recording:
|
||||
if (Priority > 0) {
|
||||
isyslog("...no deleted recording found, trying to delete an old recording...");
|
||||
cThreadLock RecordingsLock(&Recordings);
|
||||
if (Recordings.Count()) {
|
||||
@ -206,6 +207,9 @@ void AssertFreeDiskSpace(int Priority, bool Force)
|
||||
}
|
||||
// Unable to free disk space, but there's nothing we can do about that...
|
||||
isyslog("...no old recording found, giving up");
|
||||
}
|
||||
else
|
||||
isyslog("...no deleted recording found, priority %d too low to trigger deleting an old recording", Priority);
|
||||
Skins.QueueMessage(mtWarning, tr("Low disk space!"), 5, -1);
|
||||
}
|
||||
LastFreeDiskCheck = time(NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user