aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmarshallnz <jcmarsha@gmail.com>2014-05-05 08:41:09 +1200
committerJonathan Marshall <jmarshall@never.you.mind>2014-05-07 10:43:19 +1200
commit061867585e46c39e927432df89e2963f0cdca079 (patch)
treebbaa7671d0a23a4767d20e7d7e70307bac0bb858
parent638fd06a099f155683b337ffee87d8e758d11067 (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 8c9437cae5..c920aceeed 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;
}
}