Skip to content


Subversion checkout URL

You can clone with
Download ZIP


[osx] check if hogPid was set before resetting it #2079

merged 1 commit into from

2 participants


@Memphiz I found it :)

I am not sure if its a placebo effect or not, but my build is stable now ... issues are always when switching from DTS/AC3 video to divx with mp3.

Its not always reproducible on my macmini(on MBP I can never repro it), I think its the race that we set new hogpid but its not correct. check for -1 and if true try to reset cant do any harm.

@Memphiz Memphiz merged commit 52ee43e into xbmc:master
@amet amet deleted the unknown repository branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 15, 2013
  1. @amet
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioDevice.cpp
3  xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioDevice.cpp
@@ -361,7 +361,8 @@ 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
- m_HogPid = GetHogStatus();
+ if (m_HogPid == -1)
+ m_HogPid = GetHogStatus();
if (ret || m_HogPid != getpid())
Something went wrong with that request. Please try again.