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

Fixed wrongly removing the edited version after the cutter has completed

This commit is contained in:
Klaus Schmidinger 2018-01-18 10:13:29 +01:00
parent a343b375df
commit 165eae9c31

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 4.17 2018/01/16 14:07:04 kls Exp $ * $Id: recording.c 4.18 2018/01/18 10:13:29 kls Exp $
*/ */
#include "recording.h" #include "recording.h"
@ -1937,9 +1937,9 @@ void cRecordingsHandlerEntry::Cleanup(cRecordings *Recordings)
if (cutter) { // ...which had not yet ended if (cutter) { // ...which had not yet ended
delete cutter; delete cutter;
cutter = NULL; cutter = NULL;
cVideoDirectory::RemoveVideoFile(fileNameDst);
Recordings->DelByName(fileNameDst);
} }
cVideoDirectory::RemoveVideoFile(fileNameDst);
Recordings->DelByName(fileNameDst);
} }
if ((usage & (ruMove | ruCopy)) // this was a move/copy operation... if ((usage & (ruMove | ruCopy)) // this was a move/copy operation...
&& ((usage & ruPending) // ...which had not yet started... && ((usage & ruPending) // ...which had not yet started...