diff options
author | Peter Frühberger <fritsch@kodi.tv> | 2019-05-01 16:20:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 16:20:58 +0200 |
commit | f727c1d2913d8c1822ce31dd39869fcf5cf88313 (patch) | |
tree | 84030363416d98045107caed3172691a862c4220 | |
parent | 681aec5cff81cd65e7edfefebb1902664af3c251 (diff) | |
parent | 164ab7afc3bcade4e5950c56ed2f97962ef7d732 (diff) |
Merge pull request #16027 from fritsch/leiadtshdpaplayer
Fix DTSHD in PAPlayer
-rw-r--r-- | xbmc/cores/paplayer/VideoPlayerCodec.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xbmc/cores/paplayer/VideoPlayerCodec.cpp b/xbmc/cores/paplayer/VideoPlayerCodec.cpp index 4edadf0454..d761d09294 100644 --- a/xbmc/cores/paplayer/VideoPlayerCodec.cpp +++ b/xbmc/cores/paplayer/VideoPlayerCodec.cpp @@ -510,7 +510,7 @@ CAEStreamInfo::DataType VideoPlayerCodec::GetPassthroughStreamType(AVCodecID cod break; case AV_CODEC_ID_DTS: - format.m_streamInfo.m_type = CAEStreamInfo::STREAM_TYPE_DTSHD_CORE; + format.m_streamInfo.m_type = CAEStreamInfo::STREAM_TYPE_DTSHD; format.m_streamInfo.m_sampleRate = samplerate; break; @@ -520,6 +520,12 @@ CAEStreamInfo::DataType VideoPlayerCodec::GetPassthroughStreamType(AVCodecID cod bool supports = CServiceBroker::GetActiveAE()->SupportsRaw(format); + if (!supports && codecId == AV_CODEC_ID_DTS) + { + format.m_streamInfo.m_type = CAEStreamInfo::STREAM_TYPE_DTSHD_CORE; + supports = CServiceBroker::GetActiveAE()->SupportsRaw(format); + } + if (supports) return format.m_streamInfo.m_type; else |