Skip to content
This repository
Browse code

[Fix] Possible NULL pointer dereference in DVDFactoryDemuxer.

  • Loading branch information...
commit f8d1ad198b508c00e5234924da36f41b24437072 1 parent c403dcf
Andreas Zelend authored April 19, 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 f8d1ad1

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