Skip to content

Commit

Permalink
Merge pull request #548 from FernetMenta/mainline
Browse files Browse the repository at this point in the history
vdpau: fix race condition
  • Loading branch information
elupus committed Nov 28, 2011
2 parents d9da869 + 5da1242 commit 683abe0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp
Expand Up @@ -368,12 +368,10 @@ void CVDPAU::OnLostDevice()
{
CLog::Log(LOGNOTICE,"CVDPAU::OnLostDevice event");

{ CExclusiveLock lock(m_DecoderSection);
FiniVDPAUOutput();
FiniVDPAUProcs();
}
CExclusiveLock lock(m_DecoderSection);
FiniVDPAUOutput();
FiniVDPAUProcs();

CExclusiveLock lock(m_DisplaySection);
m_DisplayState = VDPAU_LOST;
m_DisplayEvent.Reset();
}
Expand Down

0 comments on commit 683abe0

Please sign in to comment.