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:34:45 (GMT)
commit1bbc9a43eb63f1569f8b510c4588a439019b49dc (patch)
tree069abfbc8c04c0b4bbbf40c702b0e5556e1900fd
parent6e8dae55ef4fd162e78e814e15786a96d83ddcd4 (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.
-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 1220638..5bae989 100644
--- a/mythtv/programs/mythfrontend/playbackbox.cpp
+++ b/mythtv/programs/mythfrontend/playbackbox.cpp
@@ -1221,7 +1221,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;
@@ -2370,6 +2371,9 @@ bool PlaybackBox::Play(
UpdateUIListItem(pginfo, true);
}
+ if (m_needUpdate)
+ ScheduleUpdateUIList();
+
return playCompleted;
}
@@ -3872,8 +3876,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")
{