Skip to content

Commit

Permalink
VideoRenderer: fix state after flush
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Oct 5, 2015
1 parent a4e0b10 commit 14f1bc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/cores/VideoPlayer/VideoRenderers/RenderManager.cpp
Expand Up @@ -520,7 +520,8 @@ void CRenderManager::FrameFinish()
/* wait for this present to be valid */
SPresent& m = m_Queue[m_presentsource];

if(g_graphicsContext.IsFullScreenVideo())
if(g_graphicsContext.IsFullScreenVideo() &&
(m_presentstep == PRESENT_FRAME || m_presentstep == PRESENT_FRAME2))
{
CSingleExit lock(g_graphicsContext);
WaitPresentTime(m.timestamp);
Expand Down Expand Up @@ -634,6 +635,7 @@ bool CRenderManager::Flush()
m_discard.clear();
m_free.clear();
m_presentsource = 0;
m_presentstep = PRESENT_IDLE;
for (int i = 1; i < m_QueueSize; i++)
m_free.push_back(i);

Expand Down

0 comments on commit 14f1bc9

Please sign in to comment.