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 af8110fd545f6b8f1fd10d806809873ea19971a4..f291babb7057be9ba0a02b61e105c8194bd84ac1 100644 |
--- a/chromecast/common/media/cast_media_client.cc |
+++ b/chromecast/common/media/cast_media_client.cc |
@@ -57,15 +57,17 @@ void CastMediaClient::RecordRapporURL(const std::string& metric, |
} |
// static |
-bool CastMediaClient::IsSupportedVideoConfig(::media::VideoCodec codec, |
- ::media::VideoCodecProfile profile, |
- int level) { |
+bool CastMediaClient::IsSupportedVideoConfig( |
+ const ::media::VideoConfig& config) { |
+// TODO(servolk): make use of eotf. |
#if defined(OS_ANDROID) |
return supported_profiles_->IsSupportedVideoConfig( |
- ToCastVideoCodec(codec, profile), ToCastVideoProfile(profile), level); |
+ ToCastVideoCodec(config.codec, config.profile), |
+ ToCastVideoProfile(config.profile), config.level); |
#else |
return MediaCapabilitiesShlib::IsSupportedVideoConfig( |
- ToCastVideoCodec(codec, profile), ToCastVideoProfile(profile), level); |
+ ToCastVideoCodec(config.codec, config.profile), |
+ ToCastVideoProfile(config.profile), config.level); |
#endif |
} |