1From b4b7a02abab25940707ab2176a7ac9b3d0a410aa 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 07/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 chromium/media/media_options.gni | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/chromium/media/media_options.gni b/chromium/media/media_options.gni
16index 32c021e39..a9a52aaf3 100644
17--- a/chromium/media/media_options.gni
18+++ b/chromium/media/media_options.gni
19@@ -213,7 +213,7 @@ if (is_chromecast) {
20     "video_decoder",
21   ]
22   _default_mojo_media_host = "gpu"
23-} else if (is_chromeos || is_mac || is_win || (is_linux && use_vaapi)) {
24+} else if (is_chromeos || is_mac || is_win || (is_linux && (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