Skip to content
This repository
Browse code

CoreAE: fix null dereference if no mixer map was created

  • Loading branch information...
commit 64c08fd7845459375eafaf9e8c9cd1feb8b10062 1 parent 7538c62
Joakim Plate authored March 17, 2013
2  xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioGraph.cpp
@@ -104,7 +104,7 @@ bool CCoreAudioGraph::Open(ICoreAudioSource *pSource, AEAudioFormat &format,
104 104
     delete m_mixMap;
105 105
     m_mixMap = CCoreAudioMixMap::CreateMixMap(m_audioUnit, format, layoutTag);
106 106
 
107  
-    if (m_mixMap || m_mixMap->IsValid())
  107
+    if (m_mixMap && m_mixMap->IsValid())
108 108
     {
109 109
       // maximum input channel ber input bus
110 110
       //fmt.mChannelsPerFrame = MAXIMUM_MIXER_CHANNELS;

0 notes on commit 64c08fd

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