Merge pull request #4145 from popcornmix/truhd
authorjmarshallnz <jcmarsha@gmail.com>
Tue, 4 Feb 2014 20:18:21 +0000 (12:18 -0800)
committerjmarshallnz <jcmarsha@gmail.com>
Tue, 4 Feb 2014 20:18:21 +0000 (12:18 -0800)
[omxplayer] Avoid choosing TrueHD as default audio track

xbmc/cores/omxplayer/OMXPlayer.cpp

index b1a6345..58f32d1 100644 (file)
@@ -234,6 +234,10 @@ static bool PredicateAudioPriority(const OMXSelectionStream& lh, const OMXSelect
   PREDICATE_RETURN(lh.type_index == CMediaSettings::Get().GetCurrentVideoSettings().m_AudioStream
                  , rh.type_index == CMediaSettings::Get().GetCurrentVideoSettings().m_AudioStream);
 
+  // TrueHD never has enough cpu to decode on Pi, so prefer to avoid that
+  PREDICATE_RETURN(lh.codec != "truehd"
+                 , rh.codec != "truehd");
+
   if(!StringUtils::EqualsNoCase(CSettings::Get().GetString("locale.audiolanguage"), "original"))
   {
     CStdString audio_language = g_langInfo.GetAudioLanguage();