aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Frühberger <fritsch@kodi.tv>2019-05-01 16:20:58 +0200
committerGitHub <noreply@github.com>2019-05-01 16:20:58 +0200
commitf727c1d2913d8c1822ce31dd39869fcf5cf88313 (patch)
tree84030363416d98045107caed3172691a862c4220
parent681aec5cff81cd65e7edfefebb1902664af3c251 (diff)
parent164ab7afc3bcade4e5950c56ed2f97962ef7d732 (diff)
Merge pull request #16027 from fritsch/leiadtshdpaplayer
Fix DTSHD in PAPlayer
-rw-r--r--xbmc/cores/paplayer/VideoPlayerCodec.cpp8
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