Skip to content

Commit

Permalink
Merge pull request #2632 from ace20022/fix_null_pointer
Browse files Browse the repository at this point in the history
[Fix] Possible NULL pointer dereference in DVDFactoryDemuxer.
  • Loading branch information
Arne Morten Kvarving committed Apr 20, 2013
2 parents cb345a7 + f8d1ad1 commit 83b16d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/cores/dvdplayer/DVDDemuxers/DVDFactoryDemuxer.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 83b16d0

Please sign in to comment.