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

infomanager: fix calls to GetInt() without a valid file item (same as in GetBool()) #5792

Merged
merged 1 commit into from
Nov 24, 2014

Conversation

Montellese
Copy link
Member

I was looking into the issue brought up by @HitcherUK in http://forum.kodi.tv/showthread.php?tid=209524 and first thought it was a progress control specific issue. The problem basically is that CGUIProgressControl doesn't get the CFileItem object to be able to make ListItem.Foo lookups in CGUIInfoManager::GetInt(). But there's no way to pass the item into that code area so I looked at the other CGUIInfoManager getters and saw that CGUIInfoManager::GetBool() has code that handles the case where a ListItem.Foo info value is looked up but no item is provided. So I've copied the code from there and now it works fine.

Disclaimer: I don't really know this code very well (probably nobodoy except @jmarshallnz does) so I just fixed the issue at hand. Not sure if that's the right fix or if there's some different problem but from following the code path it looks like this is the proper thing to do.

@Montellese Montellese added Type: Fix non-breaking change which fixes an issue Helix labels Nov 23, 2014
@jmarshallnz
Copy link
Contributor

Fix is fine.

@MartijnKaijser
Copy link
Member

thank you for confirming :)
jenkins build this please

topfs2 added a commit that referenced this pull request Nov 24, 2014
infomanager: fix calls to GetInt() without a valid file item (same as in GetBool())
@topfs2 topfs2 merged commit 5fcce61 into xbmc:master Nov 24, 2014
@Montellese Montellese deleted the skin_progressbar branch November 24, 2014 06:59
@MartijnKaijser MartijnKaijser added this to the Helix 14.0-beta5 milestone Nov 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Fix non-breaking change which fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants