diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2021-06-19 14:21:16 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2021-06-19 14:21:16 +0200 |
commit | 4d5cbaf57d74caa997c1439cabc3018c9c3fe797 (patch) | |
tree | 6ba7661b4e30bf1b48ad4b075fdc36727c2e3c3c /recorder.c | |
parent | a4a2466bf4017f49e5ff729b19088c732531de89 (diff) | |
download | vdr-4d5cbaf57d74caa997c1439cabc3018c9c3fe797.tar.gz vdr-4d5cbaf57d74caa997c1439cabc3018c9c3fe797.tar.bz2 |
If an error occurs while recording, the respective entry in the list of recordings is now updated immediately
Diffstat (limited to 'recorder.c')
-rw-r--r-- | recorder.c | 4 |
1 files changed, 3 insertions, 1 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.3 2021/05/25 20:14:06 kls Exp $ + * $Id: recorder.c 5.4 2021/06/19 14:21:16 kls Exp $ */ #include "recorder.h" @@ -239,6 +239,8 @@ void cRecorder::HandleErrors(bool Force) esyslog("%s: %d error%s", recordingName, d, d > 1 ? "s" : ""); recordingInfo->SetErrors(oldErrors + errors); recordingInfo->Write(); + LOCK_RECORDINGS_WRITE; + Recordings->UpdateByName(recordingName); } lastErrors = errors; lastErrorLog = time(NULL); |