Commit fd8a64d0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

rtp: fix build without SRTP

parent c2144624
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment