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.
  • Loading branch information
kmdewaal committed Apr 27, 2022
1 parent e287711 commit cbcffc4
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 cbcffc4

Please sign in to comment.