diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2021-05-23 15:03:17 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2021-05-23 15:03:17 +0200 |
commit | 8f52603665c024e1cab46529b34fb75719f5a58e (patch) | |
tree | adc724d913031bc4adf9ee1716200c13e687bece /recorder.c | |
parent | c40fb4b4aa1f594fa94d89673d0a537bac3ec91d (diff) | |
download | vdr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |