HYL_OK3568_LINUX/buildroot/package/qt5/qt5webengine-chromium/0007-media-Enable-mojo-media-when-using-v4l2-codec-on-des.patch

31 lines
1.0 KiB
Diff
Raw Permalink Normal View History

2025-05-10 21:49:39 +08:00
From b4b7a02abab25940707ab2176a7ac9b3d0a410aa Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Thu, 19 Dec 2019 14:22:32 +0800
Subject: [PATCH 07/14] media: Enable mojo media when using v4l2 codec on
desktop linux
The newest chromium turns to use mojo video decoder instead of gpu video
decoder.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
chromium/media/media_options.gni | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chromium/media/media_options.gni b/chromium/media/media_options.gni
index 32c021e39..a9a52aaf3 100644
--- a/chromium/media/media_options.gni
+++ b/chromium/media/media_options.gni
@@ -213,7 +213,7 @@ if (is_chromecast) {
"video_decoder",
]
_default_mojo_media_host = "gpu"
-} else if (is_chromeos || is_mac || is_win || (is_linux && use_vaapi)) {
+} else if (is_chromeos || is_mac || is_win || (is_linux && (use_vaapi || use_v4l2_codec))) {
_default_mojo_media_services = [ "video_decoder" ]
_default_mojo_media_host = "gpu"
}
--
2.20.1