aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2015-01-01 14:55:05 +0100
committerRainer Hochecker <fernetmenta@online.de>2015-01-01 14:55:05 +0100
commit82956a810df81ec02346bb5a55f0cf9920ed5e2a (patch)
treefa98a1e410e3bc76ead33f1990a222dc133d8e11
parentb2259c2c9fc8a9ab5e217d693654ffbde679c16b (diff)
parent643393b1a9303944f7c656ea0399686eaf8d0de3 (diff)
Merge pull request #6078 from FernetMenta/wasapi
wasapi: fix incorrect error log
-rw-r--r--xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp3
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;