summaryrefslogtreecommitdiff
path: root/recipes/gst-plugins-bad-1.0.recipe
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2021-04-12 21:17:47 +0900
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-04-12 16:32:12 +0000
commit366257d14bcd8db98d476498c2fb6e8e0a4ff589 (patch)
tree82cf4e48ec3bf603828a8f56b5a9c804ba791363 /recipes/gst-plugins-bad-1.0.recipe
parentb8f7c8da7cc1ff1e9b8037856cc4e2d527aff15a (diff)
gst-plugins-bad: Enable wasapi2 only for Visual Studio 2017 or newer
Windows SDK installed with Visual Studio 2015 doesn't define required symbols, such as IAudioClient3 Fixes: https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/322 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/693>
Diffstat (limited to 'recipes/gst-plugins-bad-1.0.recipe')
-rw-r--r--recipes/gst-plugins-bad-1.0.recipe4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes/gst-plugins-bad-1.0.recipe b/recipes/gst-plugins-bad-1.0.recipe
index 9aa12aa6..f9fff95d 100644
--- a/recipes/gst-plugins-bad-1.0.recipe
+++ b/recipes/gst-plugins-bad-1.0.recipe
@@ -491,9 +491,11 @@ class Recipe(custom.GStreamer):
# built with MSVC, it uses Meson but it doesn't build:
# https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/issues/2
self.disable_plugin('webrtcdsp', 'effects', dep='webrtc-audio-processing')
- self.enable_plugin('wasapi2', 'sys', 'visualstudio')
if self.config.msvc_version == 'vs14':
self.disable_plugin('d3d11', 'sys')
+ else:
+ # requires at least Visual Studio 2017
+ self.enable_plugin('wasapi2', 'sys', 'visualstudio')
if self.meson_options['d3d11'] == 'enabled':
self.files_libs += ['libgstd3d11-1.0']