1From aa4b0ec4529a95e434543da16838b73e69992dec 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 05/17] 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 2f3ad542..90dcfafa 100644
17--- a/media/media_options.gni
18+++ b/media/media_options.gni
19@@ -208,7 +208,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.17.1
30
31