xbmc/xbmc — pull request #5792 by Montellese (2014-11-23 16:45:12+00:00)
Title: infomanager: fix calls to GetInt() without a valid file item (same as in GetBool())

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.