Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[osx] silence kAUGraphErr_NodeNotFound error, it is harmless

  • Loading branch information...
commit c9cfb097e371f6c854d7e10ca24e4e9f66415441 1 parent 5cb70a4
@davilla davilla authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioUnit.cpp
View
4 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());
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.