mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
The number of errors in a recording now represents the number of broken frames
This commit is contained in:
parent
6dd5854b7a
commit
6f6b05ffcb
1
HISTORY
1
HISTORY
@ -9998,3 +9998,4 @@ Video Disk Recorder Revision History
|
||||
- Silenced a compiler warning with gcc 14.1.0 (reported by Winfried Köhler).
|
||||
- Updated the Italian OSD texts (thanks to Diego Pierotto).
|
||||
- Moved error checking from recorder.c to remux.c.
|
||||
- The number of errors in a recording now represents the number of broken frames.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: recorder.c 5.7 2024/09/17 09:28:03 kls Exp $
|
||||
* $Id: recorder.c 5.8 2024/09/17 09:39:50 kls Exp $
|
||||
*/
|
||||
|
||||
#include "recorder.h"
|
||||
@ -198,7 +198,8 @@ void cRecorder::Action(void)
|
||||
if (frameDetector->NewFrame(&PreviousErrors)) {
|
||||
if (index)
|
||||
index->Write(frameDetector->IndependentFrame(), fileName->Number(), fileSize);
|
||||
errors += PreviousErrors;
|
||||
if (PreviousErrors)
|
||||
errors++;
|
||||
}
|
||||
if (frameDetector->IndependentFrame()) {
|
||||
recordFile->Write(patPmtGenerator.GetPat(), TS_SIZE);
|
||||
|
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: recorder.h 5.2 2024/09/16 19:56:37 kls Exp $
|
||||
* $Id: recorder.h 5.3 2024/09/17 09:39:50 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __RECORDER_H
|
||||
@ -51,6 +51,7 @@ public:
|
||||
virtual ~cRecorder();
|
||||
int Errors(void) { return oldErrors + errors; };
|
||||
///< Returns the number of errors that were detected during recording.
|
||||
///< Each frame that is missing or contains (any number of) errors counts as one error.
|
||||
///< If this is a resumed recording, this includes errors that occurred
|
||||
///< in the previous parts.
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user