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] Timer update: Fix handling of timers with 'start at any time' #8452

Merged
merged 1 commit into from
Nov 29, 2015

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented Nov 27, 2015

Regression introduced with 5d8f88c

For timers with start time set to "any time", the startTime value must not be used to organize internal timer data structures as this field has no defined value for those timers.

Result is (for instance with pvr.hts and at least one repeating timer activated which has start and end time set to "any time") reorganizing kodi internal timer data structures every one second and notifying observers, e.g. timer and recording window about "timer reset" changes.

=> https://github.com/xbmc/xbmc/blob/master/xbmc/pvr/timers/PVRTimers.cpp#L255

Those windows will update itself (redraw item list etc.) upon receive of this notification which is exposed to the end user as "wildly" jumping item selection etc. in timer and recordings pvr window, at worst every 3 second.

https://github.com/xbmc/xbmc/blob/master/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp#L315

@Jalle19 Good to go? This could be done nicer, yeah, but I want to keep changes minimalistic. I promise to come up with a proper refactoring for K*****. ;-)

@ksooo ksooo added Type: Fix non-breaking change which fixes an issue Component: PVR v16 Jarvis labels Nov 27, 2015
@ksooo ksooo added this to the Jarvis 16.0-beta3 milestone Nov 27, 2015
@Jalle19
Copy link
Member

Jalle19 commented Nov 28, 2015

Is CDateTime() the current time or an "empty" date time object?

@ksooo
Copy link
Member Author

ksooo commented Nov 28, 2015

"Empty", not current. That's of course essential. Otherwise the fix won't work. :-)

@ksooo
Copy link
Member Author

ksooo commented Nov 28, 2015

@Jalle19 any objections?

@ksooo
Copy link
Member Author

ksooo commented Nov 29, 2015

jenkins build this please

@ksooo
Copy link
Member Author

ksooo commented Nov 29, 2015

Merging now, want it in beta 3 to avoid screaming users. ;-)

ksooo added a commit that referenced this pull request Nov 29, 2015
[PVR] Timer update: Fix handling of timers with 'start at any time'
@ksooo ksooo merged commit 01d7be4 into xbmc:master Nov 29, 2015
@ksooo ksooo deleted the fix-pvr-window-flicker branch November 29, 2015 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PVR Type: Fix non-breaking change which fixes an issue v16 Jarvis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants