Skip to content

Commit

Permalink
[osx] silence kAUGraphErr_NodeNotFound error, it is harmless
Browse files Browse the repository at this point in the history
  • Loading branch information
davilla committed May 19, 2012
1 parent 5cb70a4 commit c9cfb09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioUnit.cpp
Expand Up @@ -103,7 +103,7 @@ void CCoreAudioUnit::Close()
if (m_busNumber != INVALID_BUS)
{
OSStatus ret = AUGraphDisconnectNodeInput(m_audioGraph, m_audioNode, m_busNumber);
if (ret)
if (ret && ret != kAUGraphErr_NodeNotFound)
{
CLog::Log(LOGERROR, "CCoreAudioUnit::Close: "
"Unable to disconnect AudioUnit. Error = %s", GetError(ret).c_str());
Expand All @@ -113,7 +113,7 @@ void CCoreAudioUnit::Close()
if (ret)
{
CLog::Log(LOGERROR, "CCoreAudioUnit::Close: "
"Unable to disconnect AudioUnit. Error = %s", GetError(ret).c_str());
"Unable to remove AudioUnit. Error = %s", GetError(ret).c_str());
}
}

Expand Down

0 comments on commit c9cfb09

Please sign in to comment.