[cdm] Fix enable widevine build flag for AddCmaKeySystems() function
Since the function is called with USE_CHROMECAST_CDMS OR ENABLE_WIDEVINE buildflags, the function itself should be guarded the same way. Bug: b/145700375 Test: CQ Change-Id: I207a645075969cbf54b6b52ce23c0cb8a824ea51 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2843914 Reviewed-by: Yuchen Liu <yucliu@chromium.org> Commit-Queue: Jiaqi Han <jiaqih@google.com> Cr-Commit-Position: refs/heads/master@{#875718}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
095be918b4
commit
cf8ffbca55
@ -107,7 +107,7 @@ class PlayReadyKeySystemProperties : public ::media::KeySystemProperties {
|
||||
};
|
||||
#endif // BUILDFLAG(ENABLE_PLAYREADY)
|
||||
|
||||
#if BUILDFLAG(USE_CHROMECAST_CDMS)
|
||||
#if BUILDFLAG(USE_CHROMECAST_CDMS) || BUILDFLAG(ENABLE_WIDEVINE)
|
||||
SupportedCodecs GetCastEmeSupportedCodecs() {
|
||||
SupportedCodecs codecs = ::media::EME_CODEC_AAC | ::media::EME_CODEC_AVC1 |
|
||||
::media::EME_CODEC_VP9_PROFILE0 |
|
||||
|
Reference in New Issue
Block a user