Skip to content

Commit

Permalink
Suspend recording list updates whilst playback is in progress as this…
Browse files Browse the repository at this point in the history
… causes issues for some people. This is likely a temporary fix while I work on something better.

(cherry picked from commit 1bbc9a4)
  • Loading branch information
stuartm committed Jun 28, 2011
1 parent db67f84 commit ef39225
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions mythtv/programs/mythfrontend/playbackbox.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -2352,6 +2353,9 @@ bool PlaybackBox::Play(
UpdateUIListItem(pginfo, true);
}

if (m_needUpdate)
ScheduleUpdateUIList();

return playCompleted;
}

Expand Down Expand Up @@ -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")
{
Expand Down

0 comments on commit ef39225

Please sign in to comment.