Permalink
Browse files

xvba: fix segfault when FinishGL is called after CDecoder with non su…

…pported codec was created
  • Loading branch information...
1 parent dbba4fc commit 77245158a7e405b869e3562b74d1d910167c7011 @fritsch fritsch committed with Jan 13, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 xbmc/cores/dvdplayer/DVDCodecs/Video/XVBA.cpp
@@ -1358,6 +1358,9 @@ void CDecoder::FinishGL()
CLog::Log(LOGNOTICE, "XVBA::FinishGL - clearing down gl resources");
CSharedLock lock(m_decoderSection);
+ // if decoder was created with non supported codec, we would not have a flipBuffer and segfault
+ if(!m_flipBuffer)
+ return;
for (unsigned int i=0; i<m_numRenderBuffers;++i)
{

0 comments on commit 7724515

Please sign in to comment.