summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-01-16 11:09:03 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-01-16 11:09:03 +0100
commite02d608bce5e4c4f484f7e9bd81e23637968d10c (patch)
treedb1a3460d40d8c6dec91e2fde65550e85082e45e /recording.c
parent7008aeaf22807dd58b797365b9e6c36d999a2bfd (diff)
downloadvdr-e02d608bce5e4c4f484f7e9bd81e23637968d10c.tar.gz
vdr-e02d608bce5e4c4f484f7e9bd81e23637968d10c.tar.bz2
Fixed deleting the source recording after moving it to a different volume
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index af73563a..d57e3f58 100644
--- a/recording.c
+++ b/recording.c
@@ -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();