From 60e93de0e96977d7cced502ad5236d7bbaa18366 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 15 Jun 2008 22:04:28 +0300 Subject: [PATCH] RTP: need to create variables before using them --- modules/demux/rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/rtp.c b/modules/demux/rtp.c index cbcaf3ddae..c94f053327 100644 --- a/modules/demux/rtp.c +++ b/modules/demux/rtp.c @@ -237,7 +237,7 @@ static int Open (vlc_object_t *obj) if (p_sys->session == NULL) goto error; - char *key = var_GetNonEmptyString (demux, "srtp-key"); + char *key = var_CreateGetNonEmptyString (demux, "srtp-key"); if (key) { p_sys->srtp = srtp_create (SRTP_ENCR_AES_CM, SRTP_AUTH_HMAC_SHA1, 10, @@ -248,7 +248,7 @@ static int Open (vlc_object_t *obj) goto error; } - char *salt = var_GetNonEmptyString (demux, "srtp-salt"); + char *salt = var_CreateGetNonEmptyString (demux, "srtp-salt"); errno = srtp_setkeystring (p_sys->srtp, key, salt ? salt : ""); free (salt); free (key); -- 2.39.2