vcpkg/ports/gstreamer/srtp_fix.patch
Cedric GNIEWEK 4eaa3d2118
[gstreamer] Update to version 1.20.4 and rework (#27790)
* Update to GStreamer v1.20.3

* Fixed gst-plugins-bad * Made optional dependences features * Added webrtc feature

* webrtc dependency fixes

Set meson option 'gst_debug' to true for both debug and release configurations
Enabled dtls and srtp plugins
Fixed srtp plugin

* [gstreamer] Changed version to 1.20.4

* [gstreamer] Reworked port file

* [gst-rtsp-server] Updated to version 1.20.4

* [opencv4] Update GStreamer dependency

* [qtmultimedia] Update GStreamer dependency

* [qtmultimedia] Enabled AVFoundation (part of the Apple Frameworks)

* [qtbase] Fix PCRE2 static linking for GLib

* Added versions

Co-authored-by: Gerard Ryan <gerard.ryan@immersaview.com>
Co-authored-by: David Ely <david.ely@immersaview.com>
2022-11-28 12:09:25 -08:00

30 lines
1.0 KiB
Diff

diff --git a/subprojects/gst-plugins-bad/ext/srtp/meson.build b/subprojects/gst-plugins-bad/ext/srtp/meson.build
index 7f947191ae..b4a8e9c2a8 100644
--- a/subprojects/gst-plugins-bad/ext/srtp/meson.build
+++ b/subprojects/gst-plugins-bad/ext/srtp/meson.build
@@ -6,12 +6,14 @@ srtp_sources = [
'gstsrtpenc.c',
]
+gst_plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
+
srtp_cargs = []
if get_option('srtp').disabled()
subdir_done()
endif
-srtp_dep = dependency('libsrtp2', version : '>= 2.1.0', required : false)
+srtp_dep = dependency('libSRTP', modules: ['libSRTP::srtp2'], version : '>= 2.1.0', required : false)
if srtp_dep.found()
srtp_cargs += ['-DHAVE_SRTP2']
else
@@ -37,7 +39,7 @@ if srtp_dep.found()
include_directories : [configinc],
dependencies : [gstrtp_dep, gstvideo_dep, srtp_dep],
install : true,
- install_dir : plugins_install_dir,
+ install_dir : gst_plugins_install_dir,
)
pkgconfig.generate(gstsrtp, install_dir : plugins_pkgconfig_install_dir)
plugins += [gstsrtp]