Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2632 from ace20022/fix_null_pointer

[Fix] Possible NULL pointer dereference in DVDFactoryDemuxer.
  • Loading branch information...
commit 83b16d0fd80b9efc20c83aaa4037f6119e2908c6 2 parents cb345a7 + f8d1ad1
Arne Morten Kvarving authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  xbmc/cores/dvdplayer/DVDDemuxers/DVDFactoryDemuxer.cpp
View
3  xbmc/cores/dvdplayer/DVDDemuxers/DVDFactoryDemuxer.cpp
@@ -40,6 +40,9 @@ using namespace PVR;
CDVDDemux* CDVDFactoryDemuxer::CreateDemuxer(CDVDInputStream* pInputStream)
{
+ if (!pInputStream)
+ return NULL;
+
// Try to open the AirTunes demuxer
if (pInputStream->IsStreamType(DVDSTREAM_TYPE_FILE) && pInputStream->GetContent().compare("audio/x-xbmc-pcm") == 0 )
{
Please sign in to comment.
Something went wrong with that request. Please try again.