summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2011-06-28 19:34:45 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2011-06-28 19:36:40 (GMT)
commitef3922514267e53c774ecaeda52d2aa071a1ecf2 (patch)
tree5ab46af1f65400c4486b2fa663deff85721a223d
parentdb67f842c845d5e6ebf926ac9b3c30e7586763a3 (diff)
Suspend recording list updates whilst playback is in progress as this causes issues for some people. This is likely a temporary fix while I work on something better.
(cherry picked from commit 1bbc9a43eb63f1569f8b510c4588a439019b49dc)
-rw-r--r--mythtv/programs/mythfrontend/playbackbox.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/mythtv/programs/mythfrontend/playbackbox.cpp b/mythtv/programs/mythfrontend/playbackbox.cpp
index 877bd12..caebda9 100644
--- a/mythtv/programs/mythfrontend/playbackbox.cpp
+++ b/mythtv/programs/mythfrontend/playbackbox.cpp
@@ -1219,7 +1219,8 @@ void PlaybackBox::updateRecList(MythUIButtonListItem *sel_item)
updateGroupInfo(groupname, grouplabel);
- if ((m_currentGroup == groupname) && !m_needUpdate)
+ if (((m_currentGroup == groupname) && !m_needUpdate) ||
+ m_playingSomething)
return;
m_needUpdate = false;
@@ -2352,6 +2353,9 @@ bool PlaybackBox::Play(
UpdateUIListItem(pginfo, true);
}
+ if (m_needUpdate)
+ ScheduleUpdateUIList();
+
return playCompleted;
}
@@ -3852,8 +3856,13 @@ void PlaybackBox::customEvent(QEvent *event)
}
else if (message == "UPDATE_UI_LIST")
{
- UpdateUILists();
- m_helper.ForceFreeSpaceUpdate();
+ if (m_playingSomething)
+ m_needUpdate = true;
+ else
+ {
+ UpdateUILists();
+ m_helper.ForceFreeSpaceUpdate();
+ }
}
else if (message == "UPDATE_USAGE_UI")
{