summaryrefslogtreecommitdiff
path: root/recorder.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-06-12 14:24:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-06-12 14:24:09 +0200
commitb0fd7ed93387b2958aa438b0bbbf190874413f29 (patch)
treed7050b3d9872739fe4b7a54842cc072aa19d01c2 /recorder.c
parent72d342ce02cbeddfccf1c56fc0e614dfbe569608 (diff)
downloadvdr-b0fd7ed93387b2958aa438b0bbbf190874413f29.tar.gz
vdr-b0fd7ed93387b2958aa438b0bbbf190874413f29.tar.bz2
Fixed overwriting the fps value in a recording's info file
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 ee7a1e9b..2738c97c 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 2.10 2011/06/12 13:35:20 kls Exp $
+ * $Id: recorder.c 2.11 2011/06/12 14:16:45 kls Exp $
*/
#include "recorder.h"
@@ -133,7 +133,7 @@ void cRecorder::Action(void)
if (!InfoWritten) {
cRecordingInfo RecordingInfo(recordingName);
if (RecordingInfo.Read()) {
- if (frameDetector->FramesPerSecond() > 0 && !DoubleEqual(RecordingInfo.FramesPerSecond(), frameDetector->FramesPerSecond())) {
+ if (frameDetector->FramesPerSecond() > 0 && DoubleEqual(RecordingInfo.FramesPerSecond(), DEFAULTFRAMESPERSECOND) && !DoubleEqual(RecordingInfo.FramesPerSecond(), frameDetector->FramesPerSecond())) {
RecordingInfo.SetFramesPerSecond(frameDetector->FramesPerSecond());
RecordingInfo.Write();
Recordings.UpdateByName(recordingName);