Skip to content

Commit

Permalink
VideoPlayer: check state of renderer FrameFinish
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and popcornmix committed Jan 18, 2016
1 parent fd9ed11 commit 4b3d7b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xbmc/cores/VideoPlayer/VideoRenderers/RenderManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,12 @@ void CRenderManager::FrameMove()

void CRenderManager::FrameFinish()
{
{
CSingleLock lock(m_statelock);
if (m_renderState != STATE_CONFIGURED)
return;
}

/* wait for this present to be valid */
SPresent& m = m_Queue[m_presentsource];

Expand Down Expand Up @@ -556,6 +562,7 @@ void CRenderManager::PreInit()
m_QueueSize = 2;
m_QueueSkip = 0;
m_presentstep = PRESENT_IDLE;
m_format = RENDER_FMT_NONE;
}

void CRenderManager::UnInit()
Expand Down

0 comments on commit 4b3d7b7

Please sign in to comment.