Skip to content

Commit

Permalink
Fix the duration map for back-to-back recordings.
Browse files Browse the repository at this point in the history
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
stichnot committed Jan 4, 2013
1 parent c1adc3e commit 2cc858c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmythtv/recorders/dtvrecorder.cpp
Expand Up @@ -202,6 +202,8 @@ void DTVRecorder::ResetForNewFile(void)
//_seen_sps
positionMap.clear();
positionMapDelta.clear();
durationMap.clear();
durationMapDelta.clear();
_payload_buffer.clear();

locker.unlock();
Expand All @@ -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
Expand Down

0 comments on commit 2cc858c

Please sign in to comment.