Merge pull request #4649 from FernetMenta/vdpau3
authorjmarshallnz <jcmarsha@gmail.com>
Sun, 4 May 2014 20:41:09 +0000 (08:41 +1200)
committerJonathan Marshall <jmarshall@never.you.mind>
Tue, 6 May 2014 22:43:19 +0000 (10:43 +1200)
VDPAU: fix segfault if vdpau fails to open context

xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp

index 8c9437c..c920ace 100644 (file)
@@ -134,6 +134,7 @@ bool CVDPAUContext::EnsureContext(CVDPAUContext **ctx)
     {
       delete m_context;
       m_context = 0;
+      *ctx = NULL;
       return false;
     }
   }