diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2014-12-31 16:05:53 +0100 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2014-12-31 16:05:53 +0100 |
commit | 643393b1a9303944f7c656ea0399686eaf8d0de3 (patch) | |
tree | 8c03cd05a3fa897c21f2a22723285b0ed82fe3d6 | |
parent | 8d8946df2e3b833073c3adc2de32af9c1abc971c (diff) |
wasapi: fix incorrect error log
-rw-r--r-- | xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp b/xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp index 74a35993fe..858b008cc4 100644 --- a/xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp +++ b/xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp @@ -1079,7 +1079,8 @@ bool CAESinkWASAPI::InitializeExclusive(AEAudioFormat &format) else if (AE_IS_RAW(format.m_dataFormat)) //No sense in trying other formats for passthrough. return false; - CLog::Log(LOGERROR, __FUNCTION__": IsFormatSupported failed (%s) - trying to find a compatible format", WASAPIErrToStr(hr)); + if (g_advancedSettings.CanLogComponent(LOGAUDIO)) + CLog::Log(LOGDEBUG, __FUNCTION__": IsFormatSupported failed (%s) - trying to find a compatible format", WASAPIErrToStr(hr)); int closestMatch; unsigned int requestedChannels = wfxex.Format.nChannels; |