From 2cc858c9feabf1bc858cb2c2abe9206b5fb87197 Mon Sep 17 00:00:00 2001 From: Jim Stichnoth Date: Fri, 4 Jan 2013 15:18:26 -0800 Subject: [PATCH] Fix the duration map for back-to-back recordings. durationMap, durationMapDelta, and _total_duration need to be reset before starting a new back-to-back recording. Thanks to Daniel K. for spotting this. --- mythtv/libs/libmythtv/recorders/dtvrecorder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp b/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp index 82994227e31..c9f123d02a9 100644 --- a/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp +++ b/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp @@ -202,6 +202,8 @@ void DTVRecorder::ResetForNewFile(void) //_seen_sps positionMap.clear(); positionMapDelta.clear(); + durationMap.clear(); + durationMapDelta.clear(); _payload_buffer.clear(); locker.unlock(); @@ -222,6 +224,7 @@ void DTVRecorder::ClearStatistics(void) _continuity_error_count.fetchAndStoreRelaxed(0); _frames_seen_count = 0; _frames_written_count = 0; + _total_duration = 0; } // documented in recorderbase.h