Skip to content

Commit

Permalink
fix stuttering indruduced by 9c3adb5
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and popcornmix committed Jul 22, 2015
1 parent 9576cec commit 4ab32b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion xbmc/pvr/PVRGUIInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,14 @@ void CPVRGUIInfo::UpdateBackendCache(void)

// Update the backend information for all backends once per iteration
if (m_iCurrentActiveClient == 0)
m_backendProperties = g_PVRClients->GetBackendProperties();
{
std::vector<SBackend> backendProperties;
{
CSingleExit exit(m_critSection);
backendProperties = g_PVRClients->GetBackendProperties();
}
m_backendProperties = backendProperties;
}

// Get the properties for the currently active backend
const auto &backend = GetCurrentActiveBackend();
Expand Down

0 comments on commit 4ab32b4

Please sign in to comment.