opus: add subproject fallback

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/924>
This commit is contained in:
Tim-Philipp Müller 2020-11-07 17:30:19 +00:00 committed by GStreamer Merge Bot
parent fe20cac1a7
commit 78ccc551d6

View 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',