Skip to content

Commit

Permalink
renderer: grab corect lock when calling IsGui/VideoLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and popcornmix committed Mar 11, 2015
1 parent c775966 commit f62d8e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/VideoRenderers/RenderManager.cpp
Expand Up @@ -816,7 +816,7 @@ void CXBMCRenderManager::Render(bool clear, DWORD flags, DWORD alpha, bool gui)

bool CXBMCRenderManager::IsGuiLayer()
{
{ CSingleLock lock(m_presentlock);
{ CSharedLock lock(m_sharedSection);

if (!m_pRenderer)
return false;
Expand All @@ -829,7 +829,7 @@ bool CXBMCRenderManager::IsGuiLayer()

bool CXBMCRenderManager::IsVideoLayer()
{
{ CSingleLock lock(m_presentlock);
{ CSharedLock lock(m_sharedSection);

if (!m_pRenderer)
return false;
Expand Down

0 comments on commit f62d8e1

Please sign in to comment.