Permalink
Browse files

Prevent crash when audio does not initialise correctly.

  • Loading branch information...
1 parent e2a5367 commit 9ce75e331e5e924819e373f438cbbc58fbb3bffa @hydra hydra committed Sep 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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 9ce75e3

Please sign in to comment.