diff options
author | Eric Hameleers <alien@slackware.com> | 2021-03-14 11:31:01 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2021-03-14 11:31:01 +0000 |
commit | 6fd7675642335508889642778edf68f133e0fcad (patch) | |
tree | d14b222056b2883f17807c3cebec2765d045b8bf /chromium-ungoogled/build/patches/chromium_hevc_non_chromeos.patch | |
parent | 2065bb78b77455303f98954acdcabb90c719d249 (diff) | |
download | asb-6fd7675642335508889642778edf68f133e0fcad.tar.gz asb-6fd7675642335508889642778edf68f133e0fcad.tar.xz |
Initial revision
Diffstat (limited to '')
-rw-r--r-- | chromium-ungoogled/build/patches/chromium_hevc_non_chromeos.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium-ungoogled/build/patches/chromium_hevc_non_chromeos.patch b/chromium-ungoogled/build/patches/chromium_hevc_non_chromeos.patch new file mode 100644 index 00000000..eaaac605 --- /dev/null +++ b/chromium-ungoogled/build/patches/chromium_hevc_non_chromeos.patch @@ -0,0 +1,21 @@ +# We enable HEVC and this triggers a ChromeOS related error: +# chrome_key_systems.cc:186:40: error: no member named 'features' in namespace 'chromeos' +# This patch (from Arch User Repository) prevents the build failure. + +diff --git a/chrome/renderer/media/chrome_key_systems.cc.orig b/chrome/renderer/media/chrome_key_systems.cc +index 2160697..c9de40c 100644 +--- a/chrome/renderer/media/chrome_key_systems.cc.orig ++++ b/chrome/renderer/media/chrome_key_systems.cc +@@ -182,8 +182,12 @@ static SupportedCodecs GetSupportedCodecs( + #endif // BUILDFLAG(USE_PROPRIETARY_CODECS) + #if BUILDFLAG(ENABLE_PLATFORM_HEVC) + case media::VideoCodec::kCodecHEVC: ++#if BUILDFLAG(IS_CHROMEOS_ASH) + if (is_secure && base::FeatureList::IsEnabled( + chromeos::features::kCdmFactoryDaemon)) { ++#else ++ if (is_secure) { ++#endif + supported_codecs |= media::EME_CODEC_HEVC_PROFILE_MAIN; + supported_codecs |= media::EME_CODEC_HEVC_PROFILE_MAIN10; + } |