1From 65398513171cbcc728d5af34395922c5d4cffe85 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Thu, 19 Dec 2019 14:22:32 +0800
4Subject: [PATCH 04/14] media: Enable mojo media when using v4l2 codec on
5 desktop linux
6
7The newest chromium turns to use mojo video decoder instead of gpu video
8decoder.
9
10Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
11---
12 media/media_options.gni | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/media/media_options.gni b/media/media_options.gni
16index 3574b2aa..0b4b7f4a 100644
17--- a/media/media_options.gni
18+++ b/media/media_options.gni
19@@ -197,7 +197,7 @@ if (is_chromecast) {
20   ]
21   _default_mojo_media_host = "gpu"
22 } else if (is_chromeos_ash || is_mac || is_win ||
23-           ((is_linux || is_chromeos_lacros) && use_vaapi)) {
24+           ((is_linux || is_chromeos_lacros) && (use_vaapi || use_v4l2_codec))) {
25   _default_mojo_media_services = [ "video_decoder" ]
26   _default_mojo_media_host = "gpu"
27 }
28--
292.20.1
30
31