aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmarshallnz <jcmarsha@gmail.com>2014-05-05 08:41:09 +1200
committerjmarshallnz <jcmarsha@gmail.com>2014-05-05 08:41:09 +1200
commitee6c75ed2f3e5761aff1d0a2ca3e806f951eace2 (patch)
tree5d6214177b133ea68c9eb85938525da2b07ad8e0
parent52e1b717952022621746ba343541327b55aa9041 (diff)
parent790ed5ba43eac186291193accff14aef58766897 (diff)
Merge pull request #4649 from FernetMenta/vdpau3
VDPAU: fix segfault if vdpau fails to open context
-rw-r--r--xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp
index 2468db37ff..d0188bbacb 100644
--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp
+++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp
@@ -134,6 +134,7 @@ bool CVDPAUContext::EnsureContext(CVDPAUContext **ctx)
{
delete m_context;
m_context = 0;
+ *ctx = NULL;
return false;
}
}