Skip to content
This repository
Browse code

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
authored April 20, 2013
3  xbmc/cores/dvdplayer/DVDDemuxers/DVDFactoryDemuxer.cpp
@@ -40,6 +40,9 @@ using namespace PVR;
40 40
 
41 41
 CDVDDemux* CDVDFactoryDemuxer::CreateDemuxer(CDVDInputStream* pInputStream)
42 42
 {
  43
+  if (!pInputStream)
  44
+    return NULL;
  45
+
43 46
   // Try to open the AirTunes demuxer
44 47
   if (pInputStream->IsStreamType(DVDSTREAM_TYPE_FILE) && pInputStream->GetContent().compare("audio/x-xbmc-pcm") == 0 )
45 48
   {

0 notes on commit 83b16d0

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