Skip to content

Commit

Permalink
MythPlayer: Don't reset m_framesPlayed based on current timestamp
Browse files Browse the repository at this point in the history
- this was causing a number of issues, most notably around short seeks.
  • Loading branch information
mark-kendall committed Feb 11, 2020
1 parent 071c98a commit 6576a2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -1624,9 +1624,11 @@ void MythPlayer::AVSync(VideoFrame *buffer)
else
framedue = unow + m_frameInterval / 2;

// This code is disabled as it appears to cause multiple issues. It is
// retained for future reference...
// recalculate m_framesPlayed to conform to actual time code.
m_framesPlayed = TranslatePositionMsToFrame(static_cast<uint64_t>(videotimecode + m_timeOffsetBase), false);
m_decoder->SetFramesPlayed(static_cast<long long>(m_framesPlayed));
//m_framesPlayed = TranslatePositionMsToFrame(static_cast<uint64_t>(videotimecode + m_timeOffsetBase), false);
//m_decoder->SetFramesPlayed(static_cast<long long>(m_framesPlayed));

lateness = unow - framedue;
dropframe = false;
Expand Down

0 comments on commit 6576a2d

Please sign in to comment.