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

Avoiding an unecessary call to Recordings.ResetResume()

This commit is contained in:
Klaus Schmidinger 2011-04-17 13:58:29 +02:00
parent 71dacdce96
commit c670c0645f
3 changed files with 7 additions and 3 deletions

View File

@ -1267,6 +1267,7 @@ Reinhard Nissl <rnissl@gmx.de>
for storing the original display size when handling DVB subtitles for storing the original display size when handling DVB subtitles
for reporting a problem with horizontal scaling of subtitles for reporting a problem with horizontal scaling of subtitles
for fixing a buffer overflow in cFont::Bidi() for fixing a buffer overflow in cFont::Bidi()
for avoiding an unecessary call to Recordings.ResetResume()
Richard Robson <richard_robson@beeb.net> Richard Robson <richard_robson@beeb.net>
for reporting freezing replay if a timer starts while in Transfer Mode from the for reporting freezing replay if a timer starts while in Transfer Mode from the

View File

@ -6604,3 +6604,5 @@ Video Disk Recorder Revision History
to Ville Skyttä). to Ville Skyttä).
- The Makefile now also installs the include files (thanks to Ville Skyttä). - The Makefile now also installs the include files (thanks to Ville Skyttä).
- Added handling of "ANSI/SCTE 57" descriptors (thanks too Rolf Ahrenberg). - Added handling of "ANSI/SCTE 57" descriptors (thanks too Rolf Ahrenberg).
- Avoiding an unecessary call to Recordings.ResetResume() (thanks to Reinhard
Nissl).

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 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" #include "recording.h"
@ -303,9 +303,10 @@ bool cResumeFile::Save(int Index)
void cResumeFile::Delete(void) void cResumeFile::Delete(void)
{ {
if (fileName) { if (fileName) {
if (remove(fileName) < 0 && errno != ENOENT) if (remove(fileName) == 0)
Recordings.ResetResume(fileName);
else if (errno != ENOENT)
LOG_ERROR_STR(fileName); LOG_ERROR_STR(fileName);
Recordings.ResetResume(fileName);
} }
} }