Index: chromecast/common/media/cast_media_client.cc |
diff --git a/chromecast/common/media/cast_media_client.cc b/chromecast/common/media/cast_media_client.cc |
index 38ba0f14bc7f8dc1017c511294033950c6283ceb..ae57816b99efb8f6aea994e8d52d017f466a0b99 100644 |
--- a/chromecast/common/media/cast_media_client.cc |
+++ b/chromecast/common/media/cast_media_client.cc |
@@ -5,6 +5,7 @@ |
#include "chromecast/common/media/cast_media_client.h" |
#include "base/lazy_instance.h" |
+#include "chromecast/media/base/media_caps.h" |
#include "chromecast/media/base/media_codec_support.h" |
#include "chromecast/public/media/media_capabilities_shlib.h" |
@@ -55,7 +56,6 @@ void CastMediaClient::RecordRapporURL(const std::string& metric, |
content_media_client_->RecordRapporURL(metric, url); |
} |
-// static |
bool CastMediaClient::IsSupportedVideoConfig(::media::VideoCodec codec, |
::media::VideoCodecProfile profile, |
int level) { |
@@ -75,5 +75,12 @@ bool CastMediaClient::IsSupportedVideoConfig(::media::VideoCodec codec, |
return true; |
} |
+bool CastMediaClient::IsSupportedPassthroughAudio(::media::AudioCodec codec) { |
+ return (codec == ::media::kCodecAC3 && |
+ MediaCapabilities::HdmiSinkSupportsAC3()) || |
+ (codec == ::media::kCodecEAC3 && |
+ MediaCapabilities::HdmiSinkSupportsEAC3()); |
+} |
+ |
} // namespace media |
} // namespace chromecast |