Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PVR] Fix jumping timeline while switching channel groups in Guide window #12707

Merged
merged 1 commit into from
Aug 23, 2017

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented Aug 22, 2017

This fixes jumping epg grid timeline while switching channel groups in Guide window. This has been reported for both Krypton and Leia several times. :-/ Finally I was able to reproduce this and thus a fix was possible.

This has been runtime tested on macOS, latest Kodi master (as usual on my end).

@Jalle19 mind taking a look.

@ksooo ksooo added Type: Fix non-breaking change which fixes an issue Component: PVR v18 Leia labels Aug 22, 2017
@ksooo ksooo added this to the L 18.0-alpha1 milestone Aug 22, 2017
@ksooo ksooo requested a review from Jalle19 August 22, 2017 21:03
Copy link
Member

@Jalle19 Jalle19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't say I totally understand the logic so it's all up to you

{
// first block of previously selected tag is always the calculated block rounded up.
// refer to CGUIEPGGridContainerModel::Refresh, where the model is created, for details!
float fBlockIndex = (eventStart - gridStart).GetSecondsTotal() / 60.0f / CGUIEPGGridContainerModel::MINSPERBLOCK;

This comment was marked as spam.

This comment was marked as spam.

// first block of tag before previously selected gap tag is always the calculated block rounded up.
// refer to CGUIEPGGridContainerModel::Refresh, where the model is created, for details!
float fBlockIndex = (eventStart - gridStart).GetSecondsTotal() / 60.0f / CGUIEPGGridContainerModel::MINSPERBLOCK;
newBlockIndex = std::ceil(fBlockIndex);

This comment was marked as spam.

This comment was marked as spam.

@ksooo
Copy link
Member Author

ksooo commented Aug 23, 2017

@Jalle19 refactored. much better now, imo.

@ksooo
Copy link
Member Author

ksooo commented Aug 23, 2017

jenkins errors are unrelated

@ksooo ksooo merged commit 98065a3 into xbmc:master Aug 23, 2017
@ksooo ksooo deleted the pvr-fix-jumping-epg-grid branch August 23, 2017 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport: Done Component: PVR Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants