avtp: Add libavtp fallback dependence

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>
This commit is contained in:
Ederson de Souza 2020-05-13 15:02:41 -07:00 committed by GStreamer Merge Bot
parent dac36cb98f
commit a754c67c05

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