Skip to content

Commit

Permalink
Jump back in live TV
Browse files Browse the repository at this point in the history
When jumping back in live TV and the jump time interval is larger than the
current play position then a jump is done to the end of the recording instead
of to the start of the recording.
Fixed by restoring a cast that was accidentally removed in
commit 7949b0d.

(cherry picked from commit cbcffc4)
  • Loading branch information
kmdewaal committed Apr 28, 2022
1 parent 839d0f9 commit ea669e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -1448,7 +1448,7 @@ long long MythPlayer::CalcRWTime(long long rw) const
return rw;
}

auto seconds = secondsFromFloat((m_framesPlayed - rw) / m_videoFrameRate);
auto seconds = secondsFromFloat(((int64_t)m_framesPlayed - rw) / m_videoFrameRate);
m_playerCtx->m_tvchain->JumpToNext(false, seconds);

return -1;
Expand Down

0 comments on commit ea669e1

Please sign in to comment.