Skip to content

Commit

Permalink
vdpau: fix race condition, drop unneeded lock
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Nov 27, 2011
1 parent cc49b85 commit 5da1242
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp
Original file line number Diff line number Diff line change
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 5da1242

Please sign in to comment.