Skip to content
Browse files

[Fix] Possible NULL pointer dereference in DVDFactoryDemuxer.

  • Loading branch information...
1 parent c403dcf commit f8d1ad198b508c00e5234924da36f41b24437072 @ace20022 ace20022 committed Apr 19, 2013
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 f8d1ad1

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