xbmc/xbmc — pull request #1251 by arnova (2012-08-06 18:02:10+00:00)
Title: fixed: GetCachePercentage() was wrong for stacked items

The values returned by CApp::GetCachePercentage() are wrong for stacked items causing eg. info labels to be incorrect. The problem is that DVDPlayer::GetCachePercentage() returns an absolute value and is not aware of any stacks (which are handled by CApp) ,(un)like CApp:GetPercentage(). I've fixed this by having DVDPlayer::GetCachePercentage() return a relative value instead and calculate the proper absolute value in CApp::GetCachePercentage(). This can be safely done since DVDPlayer::GetCachePercentage() is only used in one place.

@elupus: Please review. Perhaps it's better to move this into the Info Manager?