summaryrefslogtreecommitdiff
path: root/recorder.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-05-23 15:03:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2021-05-23 15:03:17 +0200
commit8f52603665c024e1cab46529b34fb75719f5a58e (patch)
treeadc724d913031bc4adf9ee1716200c13e687bece /recorder.c
parentc40fb4b4aa1f594fa94d89673d0a537bac3ec91d (diff)
downloadvdr-8f52603665c024e1cab46529b34fb75719f5a58e.tar.gz
vdr-8f52603665c024e1cab46529b34fb75719f5a58e.tar.bz2
cRecordingInfo::Errors() now returns -1 for old recordings; added a missing 'const'
Diffstat (limited to 'recorder.c')
-rw-r--r--recorder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recorder.c b/recorder.c
index 47dd6a5b..21d99b44 100644
--- a/recorder.c
+++ b/recorder.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recorder.c 5.1 2021/05/19 11:22:20 kls Exp $
+ * $Id: recorder.c 5.2 2021/05/23 15:03:17 kls Exp $
*/
#include "recorder.h"
@@ -170,7 +170,7 @@ cRecorder::cRecorder(const char *FileName, const cChannel *Channel, int Priority
recordingName = strdup(FileName);
recordingInfo = new cRecordingInfo(recordingName);
recordingInfo->Read();
- oldErrors = recordingInfo->Errors(); // in case this is a re-started recording
+ oldErrors = max(0, recordingInfo->Errors()); // in case this is a re-started recording
errors = oldErrors;
firstIframeSeen = false;