Skip to content

Commit

Permalink
xvba: chasing zombie pics
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Mar 26, 2012
1 parent c49f072 commit b6b4562
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/XVBA.cpp
Expand Up @@ -1890,13 +1890,13 @@ void COutput::Flush()
m_decodedPics.pop();
CSingleLock lock(*m_config.videoSurfaceSec);
if (pic.render)
pic.render->state &= ~FF_XVBA_STATE_USED_FOR_RENDER;
pic.render->state &= ~(FF_XVBA_STATE_USED_FOR_RENDER | FF_XVBA_STATE_DECODED);
}

if (m_processPicture.render)
{
CSingleLock lock(*m_config.videoSurfaceSec);
m_processPicture.render->state &= ~FF_XVBA_STATE_USED_FOR_RENDER;
m_processPicture.render->state &= ~(FF_XVBA_STATE_USED_FOR_RENDER | FF_XVBA_STATE_DECODED);
m_processPicture.render = 0;
}

Expand All @@ -1908,7 +1908,7 @@ void COutput::Flush()
CXvbaDecodedPicture pic = *(CXvbaDecodedPicture*)msg->data;
CSingleLock lock(*m_config.videoSurfaceSec);
if (pic.render)
pic.render->state &= ~FF_XVBA_STATE_USED_FOR_RENDER;
pic.render->state &= ~(FF_XVBA_STATE_USED_FOR_RENDER | FF_XVBA_STATE_DECODED);
}
else if (msg->signal == COutputDataProtocol::RETURNPIC)
{
Expand Down Expand Up @@ -2106,7 +2106,7 @@ void COutput::ProcessReturnPicture(CXvbaRenderPicture *pic)
if (!referenced)
{
CSingleLock lock(*m_config.videoSurfaceSec);
render->state &= ~FF_XVBA_STATE_USED_FOR_RENDER;
render->state &= ~(FF_XVBA_STATE_USED_FOR_RENDER | FF_XVBA_STATE_DECODED);
}

// unreference video surface
Expand Down Expand Up @@ -2275,7 +2275,7 @@ void COutput::ReleaseBufferPool()
if (m_bufferPool.glSurfaces[idx].render)
{
{ CSingleLock lock(*m_config.videoSurfaceSec);
m_bufferPool.glSurfaces[idx].render->state &= ~FF_XVBA_STATE_USED_FOR_RENDER;
m_bufferPool.glSurfaces[idx].render->state &= ~(FF_XVBA_STATE_USED_FOR_RENDER | FF_XVBA_STATE_DECODED);
m_bufferPool.glSurfaces[idx].render = 0;
}
}
Expand Down

0 comments on commit b6b4562

Please sign in to comment.