aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2016-01-11 22:40:09 +0100
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2016-01-11 22:40:09 +0100
commit2b23909b1cff529f4601066e0cfe17a618025ec8 (patch)
treebf9f1a036b8fe915fa0b9e6064895f3deb34a8a8
parent9459a41fe2e96b759c41af00651f66c79e8d028f (diff)
parente8cf9c12e635e598ce8b785823920882b4faf598 (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.cpp11
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;