diff options
author | Geoffrey McRae <gnif@xbmc.org> | 2012-04-25 16:05:13 +1200 |
---|---|---|
committer | Jonathan Marshall <jmarshall@never.you.mind> | 2012-05-10 09:40:52 +1200 |
commit | 83b6497a8dc09f030882ba22169af6c9be3f68d5 (patch) | |
tree | 9c678c825fda4e4803a9dfc104263419b7fcab3b | |
parent | 67638dc7a7f4139ad78773d00171b11550119fcd (diff) |
[AE] paplayer: dvdplayercodec can support passthrough
-rw-r--r-- | xbmc/cores/paplayer/DVDPlayerCodec.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/cores/paplayer/DVDPlayerCodec.cpp b/xbmc/cores/paplayer/DVDPlayerCodec.cpp index 1ac4d67040..9cac9cf5c5 100644 --- a/xbmc/cores/paplayer/DVDPlayerCodec.cpp +++ b/xbmc/cores/paplayer/DVDPlayerCodec.cpp @@ -29,6 +29,7 @@ #include "cores/dvdplayer/DVDStreamInfo.h" #include "cores/dvdplayer/DVDCodecs/DVDFactoryCodec.h" #include "utils/log.h" +#include "settings/GUISettings.h" #include "AudioDecoder.h" @@ -131,7 +132,8 @@ bool DVDPlayerCodec::Init(const CStdString &strFile, unsigned int filecache) CDVDStreamInfo hint(*pStream, true); - m_pAudioCodec = CDVDFactoryCodec::CreateAudioCodec(hint, false); + bool passthrough = AUDIO_IS_BITSTREAM(g_guiSettings.GetInt("audiooutput.mode")); + m_pAudioCodec = CDVDFactoryCodec::CreateAudioCodec(hint, passthrough); if (!m_pAudioCodec) { CLog::Log(LOGERROR, "%s: Could not create audio codec", __FUNCTION__); |