Index: media/media_options.gni |
diff --git a/media/media_options.gni b/media/media_options.gni |
index 466b6c54a4a01b584b17573c71451ad5086f156d..81469aad6ef79c75a112f4cb426cf1bab6ff0f0a 100644 |
--- a/media/media_options.gni |
+++ b/media/media_options.gni |
@@ -3,6 +3,7 @@ |
# found in the LICENSE file. |
import("//build/config/chromecast_build.gni") |
+import("//build/config/headless_build.gni") |
declare_args() { |
# Allows distributions to link pulseaudio directly (DT_NEEDED) instead of |
@@ -40,7 +41,7 @@ declare_args() { |
# Alsa should be used on non-Android, non-Mac POSIX systems, and Chromecast |
# builds for desktop Linux. |
- if (is_posix && !is_android && !is_mac && |
+ if (is_posix && !is_headless && !is_android && !is_mac && |
(!is_chromecast || target_cpu != "arm")) { |
use_alsa = true |
if (!use_cras) { |