diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-17 09:03:01 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-17 09:03:01 +0200 |
commit | e6526ae2691991b7f623ae7345ec05985d3f0005 (patch) | |
tree | 61bbf47a5b491574447bb662713ba2c13445561d /recording.c | |
parent | 8423b5ea4c756a3e7c554ec51d7989e32ddfcfea (diff) | |
download | vdr-e6526ae2691991b7f623ae7345ec05985d3f0005.tar.gz vdr-e6526ae2691991b7f623ae7345ec05985d3f0005.tar.bz2 |
The script given to VDR with the '-r' option is now also called whenever a recording is deleted
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/recording.c b/recording.c index 49c5276e..6121ee27 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 2.61 2012/09/13 11:02:17 kls Exp $ + * $Id: recording.c 2.62 2012/09/17 08:54:00 kls Exp $ */ #include "recording.h" @@ -1010,8 +1010,10 @@ bool cRecording::Delete(void) RemoveVideoFile(NewName); } isyslog("deleting recording '%s'", FileName()); - if (access(FileName(), F_OK) == 0) + if (access(FileName(), F_OK) == 0) { result = RenameVideoFile(FileName(), NewName); + cRecordingUserCommand::InvokeCommand(RUC_DELETERECORDING, NewName); + } else { isyslog("recording '%s' vanished", FileName()); result = true; // well, we were going to delete it, anyway |