avtp: Add libavtp fallback dependence
authorEderson de Souza <ederson.desouza@intel.com>
Wed, 13 May 2020 22:02:41 +0000 (15:02 -0700)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 21 May 2020 00:14:08 +0000 (00:14 +0000)
So that libavtp can be found if added as subproject on gst-build.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1271>

ext/avtp/meson.build

index 8003dc7..a11cc4d 100644 (file)
@@ -14,7 +14,8 @@ avtp_sources = [
   'gstavtpcrfcheck.c',
 ]
 
-avtp_dep = dependency('avtp', required: get_option('avtp'))
+avtp_dep = dependency('avtp', required: get_option('avtp'),
+                      fallback: ['avtp', 'avtp_dep'])
 
 if avtp_dep.found() and cc.has_type('struct sock_txtime', prefix : '#include <linux/net_tstamp.h>')
   gstavtp = library('gstavtp',