Permalink
Browse files

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.
  • Loading branch information...
1 parent c1adc3e commit 2cc858c9feabf1bc858cb2c2abe9206b5fb87197 @stichnot stichnot committed Jan 4, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 mythtv/libs/libmythtv/recorders/dtvrecorder.cpp
View
3 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

0 comments on commit 2cc858c

Please sign in to comment.