diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-04-17 13:58:29 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-04-17 13:58:29 +0200 |
commit | c670c0645f6445eb3b8c65abc601a83c35228411 (patch) | |
tree | 6bb803f28c5491de05aa543de4c983201e9c5082 /recording.c | |
parent | 71dacdce961006a5282c30ece6b00e40b08f69ad (diff) | |
download | vdr-c670c0645f6445eb3b8c65abc601a83c35228411.tar.gz vdr-c670c0645f6445eb3b8c65abc601a83c35228411.tar.bz2 |
Avoiding an unecessary call to Recordings.ResetResume()
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/recording.c b/recording.c index 518325de..d4cf9c34 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.29 2011/04/17 13:20:46 kls Exp $ + * $Id: recording.c 2.30 2011/04/17 13:53:11 kls Exp $ */ #include "recording.h" @@ -303,9 +303,10 @@ bool cResumeFile::Save(int Index) void cResumeFile::Delete(void) { if (fileName) { - if (remove(fileName) < 0 && errno != ENOENT) + if (remove(fileName) == 0) + Recordings.ResetResume(fileName); + else if (errno != ENOENT) LOG_ERROR_STR(fileName); - Recordings.ResetResume(fileName); } } |