multimedia/gstreamer1-plugins-bad: Tame webrtcdsp plugin

Despite beinging disabled through meson arguments, the webrtcdsp
plugin tries to build if audio/webrtc-audio-processing[2] is installed.

Reported by:	fluffy
This commit is contained in:
Jason E. Hale
2025-08-14 22:38:39 -04:00
parent 8541ca011f
commit 6a20affd2b
2 changed files with 14 additions and 4 deletions
@@ -1,6 +1,16 @@
--- ext/webrtcdsp/meson.build.orig 2025-03-11 20:14:44 UTC
--- ext/webrtcdsp/meson.build.orig 2025-08-07 18:06:46 UTC
+++ ext/webrtcdsp/meson.build
@@ -49,7 +49,7 @@ if webrtc_dep.found()
@@ -43,13 +43,17 @@ endif
required : get_option('webrtcdsp'))
endif
+if get_option('webrtcdsp').disabled()
+ subdir_done()
+endif
+
if webrtc_dep.found()
gstwebrtcdsp = library('gstwebrtcdsp',
webrtc_sources,
cpp_args : gst_plugins_bad_args,
link_args : noseh_link_args,
include_directories : [configinc],
@@ -1,11 +1,11 @@
--- gst-libs/gst/cuda/meson.build.orig 2025-03-11 20:14:44 UTC
--- gst-libs/gst/cuda/meson.build.orig 2025-08-07 18:06:46 UTC
+++ gst-libs/gst/cuda/meson.build
@@ -1,3 +1,4 @@
+if get_option('cuda').enabled()
cuda_sources = files([
'gstcudabufferpool.cpp',
'gstcudacontext.cpp',
@@ -217,3 +218,4 @@ meson.override_dependency(pkg_name, gstcuda_dep)
@@ -214,3 +215,4 @@ meson.override_dependency(pkg_name, gstcuda_dep)
sources: gen_sources)
meson.override_dependency(pkg_name, gstcuda_dep)