Skip to content

Commit

Permalink
CoreAE: fix null dereference if no mixer map was created
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus committed Mar 17, 2013
1 parent 7538c62 commit 64c08fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ bool CCoreAudioGraph::Open(ICoreAudioSource *pSource, AEAudioFormat &format,
delete m_mixMap;
m_mixMap = CCoreAudioMixMap::CreateMixMap(m_audioUnit, format, layoutTag);

if (m_mixMap || m_mixMap->IsValid())
if (m_mixMap && m_mixMap->IsValid())
{
// maximum input channel ber input bus
//fmt.mChannelsPerFrame = MAXIMUM_MIXER_CHANNELS;
Expand Down

0 comments on commit 64c08fd

Please sign in to comment.