summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-06-19 14:21:16 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2021-06-19 14:21:16 +0200
commit4d5cbaf57d74caa997c1439cabc3018c9c3fe797 (patch)
tree6ba7661b4e30bf1b48ad4b075fdc36727c2e3c3c
parenta4a2466bf4017f49e5ff729b19088c732531de89 (diff)
downloadvdr-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
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY4
-rw-r--r--recorder.c4
3 files changed, 8 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 759db3cd..c12dca67 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3356,6 +3356,8 @@ Matthias Senzel <matthias.senzel@t-online.de>
for reporting a high CPU load during replay with active progress display
for reporting that the lock on the Channels list in cDisplayChannel was still held
when Flush() was called
+ for reporting that if an error occurs while recording, the respective entry in the list
+ of recordings was not updated immediately
Marek Nazarko <mnazarko@gmail.com>
for translating OSD texts to the Polish language
diff --git a/HISTORY b/HISTORY
index 6eff1005..6a1884ca 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9720,7 +9720,9 @@ Video Disk Recorder Revision History
- Removed unused declaration of cDvbTuner::SetFrontendType() (thanks to Helmut Binder).
- Fixed handling incomplete multi-packet CAT (thanks to Helmut Binder).
-2021-06-11:
+2021-06-19:
- Fixed restarting PMT pids after starting a recording on the currently viewed channel
(with help from Helmut Binder).
+- If an error occurs while recording, the respective entry in the list of recordings is
+ now updated immediately (reported by Matthias Senzel).
diff --git a/recorder.c b/recorder.c
index 0c07255d..30832017 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.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);