diff options
author | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2016-01-11 22:40:09 +0100 |
---|---|---|
committer | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2016-01-11 22:40:09 +0100 |
commit | 2b23909b1cff529f4601066e0cfe17a618025ec8 (patch) | |
tree | bf9f1a036b8fe915fa0b9e6064895f3deb34a8a8 | |
parent | 9459a41fe2e96b759c41af00651f66c79e8d028f (diff) | |
parent | e8cf9c12e635e598ce8b785823920882b4faf598 (diff) |
Merge pull request #8846 from ksooo/jarvis-pvr-fix-dancing-progressbar
[PVR] Fix 'dancing' OSD progress bar while switching channels.
-rw-r--r-- | xbmc/GUIInfoManager.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xbmc/GUIInfoManager.cpp b/xbmc/GUIInfoManager.cpp index 65e0a69c0e..c8bcd30006 100644 --- a/xbmc/GUIInfoManager.cpp +++ b/xbmc/GUIInfoManager.cpp @@ -2295,15 +2295,14 @@ bool CGUIInfoManager::GetInt(int &value, int info, int contextWindow, const CGUI switch( info ) { case PLAYER_PROGRESS: - if (IsPlayerChannelPreviewActive()) { - CEpgInfoTagPtr tag(GetEpgInfoTag()); + const CEpgInfoTagPtr tag(GetEpgInfoTag()); if (tag) - value = tag->ProgressPercentage(); + value = static_cast<int>(tag->ProgressPercentage()); + else + value = static_cast<int>(g_application.GetPercentage()); + break; } - else - value = (int)(g_application.GetPercentage()); - break; case PLAYER_PROGRESS_CACHE: value = (int)(g_application.GetCachePercentage()); break; |