[osx] - enlarge that hogstatus comment a bit :D
authorMemphiz <memphis@machzwo.de>
Tue, 15 Jan 2013 18:11:21 +0000 (19:11 +0100)
committerMemphiz <memphis@machzwo.de>
Tue, 15 Jan 2013 18:11:21 +0000 (19:11 +0100)
xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioDevice.cpp

index ae7bf93..5facfcd 100644 (file)
@@ -361,6 +361,10 @@ bool CCoreAudioDevice::SetHogStatus(bool hog)
       // even if setting hogmode was successfull our PID might not get written
       // into m_HogPid (so it stays -1). Readback hogstatus for judging if we
       // had success on getting hog status
+      // We do this only when AudioObjectSetPropertyData didn't set m_HogPid because
+      // it seems that in the other cases the GetHogStatus could return -1
+      // which would overwrite our valid m_HogPid again
+      // Man we should never touch this shit again ;)
       if (m_HogPid == -1)
         m_HogPid = GetHogStatus();