Skip to content
Browse files

Merge pull request #2632 from ace20022/fix_null_pointer

[Fix] Possible NULL pointer dereference in DVDFactoryDemuxer.
  • Loading branch information...
2 parents cb345a7 + f8d1ad1 commit 83b16d0fd80b9efc20c83aaa4037f6119e2908c6 Arne Morten Kvarving committed
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 )
{

0 comments on commit 83b16d0

Please sign in to comment.
Something went wrong with that request. Please try again.