From a4bc8f75912c0d5b169aa4d34fed23efce533170 Mon Sep 17 00:00:00 2001 From: DaveTBlake Date: Fri, 5 Jul 2019 08:59:20 +0100 Subject: [PATCH] Fix PAPlayer to handle passthrough for TrueHD --- xbmc/cores/paplayer/VideoPlayerCodec.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xbmc/cores/paplayer/VideoPlayerCodec.cpp b/xbmc/cores/paplayer/VideoPlayerCodec.cpp index d761d09294e6b..f3195c9d16ded 100644 --- a/xbmc/cores/paplayer/VideoPlayerCodec.cpp +++ b/xbmc/cores/paplayer/VideoPlayerCodec.cpp @@ -514,6 +514,11 @@ CAEStreamInfo::DataType VideoPlayerCodec::GetPassthroughStreamType(AVCodecID cod format.m_streamInfo.m_sampleRate = samplerate; break; + case AV_CODEC_ID_TRUEHD: + format.m_streamInfo.m_type = CAEStreamInfo::STREAM_TYPE_TRUEHD; + format.m_streamInfo.m_sampleRate = samplerate; + break; + default: format.m_streamInfo.m_type = CAEStreamInfo::STREAM_TYPE_NULL; }