[vlc-devel] commit: RTP: need to create variables before using them ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jun 15 21:05:00 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jun 15 22:04:28 2008 +0300| [60e93de0e96977d7cced502ad5236d7bbaa18366]

RTP: need to create variables before using them

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

 modules/demux/rtp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/rtp.c b/modules/demux/rtp.c
index cbcaf3d..c94f053 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);




More information about the vlc-devel mailing list