Permalink
Browse files

[osx] silence kAUGraphErr_NodeNotFound error, it is harmless

  • Loading branch information...
1 parent 5cb70a4 commit c9cfb097e371f6c854d7e10ca24e4e9f66415441 @davilla davilla committed May 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioUnit.cpp
@@ -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());
@@ -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());
}
}

0 comments on commit c9cfb09

Please sign in to comment.