Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 2cc858c9feabf1bc858cb2c2abe9206b5fb87197 1 parent c1adc3e
@stichnot stichnot authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.