opus: add subproject fallback
authorTim-Philipp Müller <tim@centricular.com>
Sat, 7 Nov 2020 17:30:19 +0000 (17:30 +0000)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 13 Nov 2020 15:11:03 +0000 (15:11 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/924>

ext/opus/meson.build

index 1dadcbf..130c92d 100644 (file)
@@ -6,7 +6,8 @@ opus_sources = [
   'gstopusheader.c',
 ]
 
-opus_dep = dependency('opus', version : '>= 0.9.4', required : get_option('opus'))
+opus_dep = dependency('opus', version: '>= 0.9.4', required: get_option('opus'),
+                      fallback: ['opus', 'opus_dep'])
 
 if opus_dep.found()
   gstopus = library('gstopus',