hc
2023-11-07 f45e756958099c35d6afb746df1d40a1c6302cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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