[vlc-commits] rtp: fix build without SRTP

Rémi Denis-Courmont git at videolan.org
Sat Jun 6 11:04:21 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun  6 12:04:12 2020 +0300| [fd8a64d018c3962b4a07ef0b818817e0bb508e4e] | committer: Rémi Denis-Courmont

rtp: fix build without SRTP

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd8a64d018c3962b4a07ef0b818817e0bb508e4e
---

 modules/access/rtp/rtp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index b3e9762175..de6e26a387 100644
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -482,8 +482,10 @@ static int OpenURL(vlc_object_t *obj)
     return VLC_SUCCESS;
 
 error:
+#ifdef HAVE_SRTP
     if (p_sys->srtp != NULL)
         srtp_destroy(p_sys->srtp);
+#endif
     if (p_sys->session != NULL)
         rtp_session_destroy(demux, p_sys->session);
     if (p_sys->rtcp_sock != NULL)



More information about the vlc-commits mailing list