- Fix FTBFS on aarch64 - error: no member named 'Contains' in namespace 'base'epel8
parent
1579239c98
commit
7e71540a5e
@ -0,0 +1,30 @@
|
|||||||
|
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
|
||||||
|
index bb0122ffd72d4..9262cc744582f 100644
|
||||||
|
--- a/media/base/media_switches.cc
|
||||||
|
+++ b/media/base/media_switches.cc
|
||||||
|
@@ -807,7 +807,7 @@ BASE_FEATURE(kVaapiVp9kSVCHWEncoding,
|
||||||
|
"VaapiVp9kSVCHWEncoding",
|
||||||
|
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||||
|
#endif // defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS)
|
||||||
|
-#if defined(ARCH_CPU_ARM_FAMILY) && BUILDFLAG(IS_CHROMEOS)
|
||||||
|
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
|
||||||
|
// Enables the new V4L2StatefulVideoDecoder instead of V4L2VideoDecoder.
|
||||||
|
BASE_FEATURE(kV4L2FlatStatelessVideoDecoder,
|
||||||
|
"V4L2FlatStatelessVideoDecoder",
|
||||||
|
diff --git a/media/base/media_switches.h b/media/base/media_switches.h
|
||||||
|
index 97d9602eee49e..aacfac69fae20 100644
|
||||||
|
--- a/media/base/media_switches.h
|
||||||
|
+++ b/media/base/media_switches.h
|
||||||
|
@@ -318,10 +318,10 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiH264TemporalLayerHWEncoding);
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiVp8TemporalLayerHWEncoding);
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiVp9kSVCHWEncoding);
|
||||||
|
#endif // defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS)
|
||||||
|
-#if defined(ARCH_CPU_ARM_FAMILY) && BUILDFLAG(IS_CHROMEOS)
|
||||||
|
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kV4L2FlatStatelessVideoDecoder);
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kV4L2FlatStatefulVideoDecoder);
|
||||||
|
-#endif // defined(ARCH_CPU_ARM_FAMILY) && BUILDFLAG(IS_CHROMEOS)
|
||||||
|
+#endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kVideoBlitColorAccuracy);
|
||||||
|
#if BUILDFLAG(IS_APPLE)
|
||||||
|
MEDIA_EXPORT BASE_DECLARE_FEATURE(kVideoToolboxVideoDecoder);
|
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/media/gpu/v4l2/v4l2_stateful_video_decoder.cc b/media/gpu/v4l2/v4l2_stateful_video_decoder.cc
|
||||||
|
index c84dedb7d1c1f..ca8cd566d2018 100644
|
||||||
|
--- a/media/gpu/v4l2/v4l2_stateful_video_decoder.cc
|
||||||
|
+++ b/media/gpu/v4l2/v4l2_stateful_video_decoder.cc
|
||||||
|
@@ -9,6 +9,7 @@
|
||||||
|
#include <sys/eventfd.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
+#include "base/containers/contains.h"
|
||||||
|
#include "base/files/file_util.h"
|
||||||
|
#include "base/functional/callback_helpers.h"
|
||||||
|
#include "base/memory/ptr_util.h"
|
Loading…
Reference in new issue