summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/patch-media_media_options_gni
blob: de8696249ba4a92991b910f0d901da7a618681c0 (plain)
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
30
$OpenBSD: patch-media_media_options_gni,v 1.36 2021/11/16 11:28:47 robert Exp $

Index: media/media_options.gni
--- media/media_options.gni.orig
+++ media/media_options.gni
@@ -113,9 +113,12 @@ declare_args() {
   # Enables runtime selection of ALSA library for audio.
   use_alsa = false
 
+  # Enable runtime selection of sndio(7)
+  use_sndio = false
+
   # Alsa should be used on non-Android, non-Mac POSIX systems.
   # Alsa should be used on desktop Chromecast and audio-only Chromecast builds.
-  if (is_posix && !is_android && !is_mac &&
+  if (is_posix && !is_android && !is_mac && !is_openbsd &&
       (!is_chromecast || is_cast_desktop_build || is_cast_audio_only)) {
     use_alsa = true
 
@@ -130,6 +133,10 @@ declare_args() {
     if (!use_cras && !is_chromecast && !is_asan && !is_tsan) {
       use_pulseaudio = true
     }
+  }
+  if (is_openbsd) {
+    use_sndio = true
+    use_pulseaudio = false
   }
 }