[vlc-commits] [Git][videolan/vlc][master] meson: sout/rtp: keep the module when SRTP is not available

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Aug 21 15:21:51 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
bf76d53a by Alexandre Janniaux at 2026-08-21T15:04:10+00:00
meson: sout/rtp: keep the module when SRTP is not available

srtp_dep is a disabler when libgcrypt is missing, and listing it in the
dependencies made library() return a disabler instead of a target. The RTP
stream output would not be built at all when this happens.

SRTP is optional there, every use is guarded by HAVE_SRTP, so only add the
dependency when it is available, like the rtp access module already does.

- - - - -


1 changed file:

- modules/stream_out/meson.build


Changes:

=====================================
modules/stream_out/meson.build
=====================================
@@ -144,6 +144,11 @@ vlc_modules += {
 }
 
 # RTP
+rtp_sout_deps = [socket_libs]
+if srtp_dep.found()
+    rtp_sout_deps += srtp_dep
+endif
+
 vlc_modules += {
     'name' : 'stream_out_rtp',
     'sources' : files(
@@ -153,7 +158,7 @@ vlc_modules += {
         'rtcp.c',
         'rtsp.c',
     ),
-    'dependencies' : [socket_libs, srtp_dep],
+    'dependencies' : rtp_sout_deps,
     'shortname' : 's_o_rtp',
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bf76d53ae3def61b0ba9d7e68ce4605eaf69618a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bf76d53ae3def61b0ba9d7e68ce4605eaf69618a
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list