mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
media-libs/gst-plugins-bad: fix webrtcdsp disable
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/527 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8424
|
||||
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/de1166338c31165969bbffeace5e7b73f681b92a
|
||||
|
||||
From de1166338c31165969bbffeace5e7b73f681b92a Mon Sep 17 00:00:00 2001
|
||||
From: Seungha Yang <seungha@centricular.com>
|
||||
Date: Thu, 6 Feb 2025 22:49:35 +0900
|
||||
Subject: [PATCH] webrtcdsp: Respect disabled feature option
|
||||
|
||||
Don't try to build this plugin if it's explicitly disabled
|
||||
|
||||
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8424>
|
||||
--- a/ext/webrtcdsp/meson.build
|
||||
+++ b/ext/webrtcdsp/meson.build
|
||||
@@ -8,6 +8,12 @@ webrtc_headers = [
|
||||
'gstwebrtcechoprobe.h',
|
||||
'gstwebrtcdsp.h',
|
||||
]
|
||||
+
|
||||
+webrtcdsp_opt = get_option('webrtcdsp')
|
||||
+if webrtcdsp_opt.disabled()
|
||||
+ subdir_done()
|
||||
+endif
|
||||
+
|
||||
doc_sources = []
|
||||
foreach s: webrtc_sources + webrtc_headers
|
||||
doc_sources += meson.current_source_dir() / s
|
||||
@@ -40,7 +46,7 @@ if not webrtc_dep.found()
|
||||
webrtc_dep = dependency('webrtc-audio-processing-2', version : ['>= 2.0'],
|
||||
allow_fallback : true,
|
||||
default_options : [default_cppstd],
|
||||
- required : get_option('webrtcdsp'))
|
||||
+ required : webrtcdsp_opt)
|
||||
endif
|
||||
|
||||
if webrtc_dep.found()
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -46,6 +46,10 @@ BDEPEND="
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README.md RELEASE )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/gst-plugins-bad-1.26.11-respect-webrtcdsp-disable.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
addpredict /dev # Prevent sandbox violations bug #570624
|
||||
|
||||
Reference in New Issue
Block a user