Permalink
Browse files

xvba: grab exclusive lock on gl finish, fixes segfault

  • Loading branch information...
1 parent 7724515 commit 2a9a9eaf0d2df7ba022cf292d20789d6324a0ad4 @FernetMenta committed Jan 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/cores/dvdplayer/DVDCodecs/Video/XVBA.cpp
@@ -1357,7 +1357,7 @@ void CDecoder::FinishGL()
{
CLog::Log(LOGNOTICE, "XVBA::FinishGL - clearing down gl resources");
- CSharedLock lock(m_decoderSection);
+ CExclusiveLock lock(m_decoderSection);
// if decoder was created with non supported codec, we would not have a flipBuffer and segfault
if(!m_flipBuffer)
return;

0 comments on commit 2a9a9ea

Please sign in to comment.