Permalink
Browse files

[Fix] Possible NULL pointer dereference in DVDFactoryDemuxer.

  • Loading branch information...
ace20022 committed Apr 19, 2013
1 parent c403dcf commit f8d1ad198b508c00e5234924da36f41b24437072
Showing with 3 additions and 0 deletions.
  1. +3 −0 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 f8d1ad1

Please sign in to comment.