mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed deleting the source recording after moving it to a different volume
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: recording.c 3.11 2013/12/27 11:06:01 kls Exp $
|
||||
* $Id: recording.c 3.12 2014/01/16 11:03:41 kls Exp $
|
||||
*/
|
||||
|
||||
#include "recording.h"
|
||||
@@ -1879,7 +1879,8 @@ bool cRecordingsHandlerEntry::Active(bool &Error)
|
||||
// Clean up:
|
||||
if (CopierFinishedOk && (Usage() & ruMove) != 0) {
|
||||
cRecording Recording(FileNameSrc());
|
||||
Recording.Delete();
|
||||
if (Recording.Delete())
|
||||
DeletedRecordings.AddByName(Recording.FileName());
|
||||
}
|
||||
Recordings.ChangeState();
|
||||
Recordings.TouchUpdate();
|
||||
|
||||
Reference in New Issue
Block a user