new/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_98.0.4758/0005-media-Enable-mojo-media-when-using-v4l2-codec-on-des.patch
2025-05-10 21:58:58 +08:00

31 lines
1003 B
Diff

From aa4b0ec4529a95e434543da16838b73e69992dec 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 05/17] 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>
---
media/media_options.gni | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/media/media_options.gni b/media/media_options.gni
index 2f3ad542..90dcfafa 100644
--- a/media/media_options.gni
+++ b/media/media_options.gni
@@ -208,7 +208,7 @@ if (is_chromecast) {
]
_default_mojo_media_host = "gpu"
} else if (is_chromeos_ash || is_mac || is_win ||
- ((is_linux || is_chromeos_lacros) && use_vaapi)) {
+ ((is_linux || is_chromeos_lacros) && (use_vaapi || use_v4l2_codec))) {
_default_mojo_media_services = [ "video_decoder" ]
_default_mojo_media_host = "gpu"
}
--
2.17.1