1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Restoring the source recording in case copying fails

This commit is contained in:
Klaus Schmidinger 2013-10-16 10:24:28 +02:00
parent c9fb7eb4d6
commit 47b09cce5d

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "recording.h"
@ -1754,6 +1754,7 @@ void cDirCopier::Stop(void)
Cancel(3); Cancel(3);
if (error) { if (error) {
cVideoDirectory::RemoveVideoFile(dirNameDst); cVideoDirectory::RemoveVideoFile(dirNameDst);
Recordings.AddByName(dirNameSrc);
Recordings.DelByName(dirNameDst); Recordings.DelByName(dirNameDst);
} }
} }