summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-10-16 10:24:28 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-10-16 10:24:28 +0200
commit47b09cce5dc82623273ef3bd8fcd6f1cfd75320d (patch)
tree5925fdd333ec904f04bc42b40b4b0f2e9393cac0 /recording.c
parentc9fb7eb4d6785ce6bbe88e1e45e4f5309c9ad889 (diff)
downloadvdr-47b09cce5dc82623273ef3bd8fcd6f1cfd75320d.tar.gz
vdr-47b09cce5dc82623273ef3bd8fcd6f1cfd75320d.tar.bz2
Restoring the source recording in case copying fails
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/recording.c b/recording.c
index 30cf0387..e41a89ea 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.6 2013/10/14 09:40:00 kls Exp $
+ * $Id: recording.c 3.7 2013/10/16 10:24:28 kls Exp $
*/
#include "recording.h"
@@ -1754,6 +1754,7 @@ void cDirCopier::Stop(void)
Cancel(3);
if (error) {
cVideoDirectory::RemoveVideoFile(dirNameDst);
+ Recordings.AddByName(dirNameSrc);
Recordings.DelByName(dirNameDst);
}
}