new/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_97.0.4692/0004-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 65398513171cbcc728d5af34395922c5d4cffe85 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 04/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>
---
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 3574b2aa..0b4b7f4a 100644
--- a/media/media_options.gni
+++ b/media/media_options.gni
@@ -197,7 +197,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.20.1