Browse files

Merge pull request #1522 from hydra/fix-audio-crash1

Prevent crash when audio does not initialise correctly.
  • Loading branch information...
2 parents 5717f40 + 9ce75e3 commit d601ba04da8a76d57f61c3c2f29862f84746d5f3 @DDDamian DDDamian committed Oct 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp
View
1 xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp
@@ -595,6 +595,7 @@ void CAESinkDirectSound::EnumerateDevicesEx(AEDeviceInfoList &deviceInfoList)
if (FAILED(hr))
{
CLog::Log(LOGERROR, __FUNCTION__": Activate device failed (%s)", WASAPIErrToStr(hr));
+ goto failed;
}
//hr = pClient->GetMixFormat(&pwfxex);

0 comments on commit d601ba0

Please sign in to comment.