From: RĂ©mi Denis-Courmont Date: Sat, 13 Mar 2010 15:13:30 +0000 (+0200) Subject: RTP output: fix SRTP error path X-Git-Tag: 1.1.0-pre1~399 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ccb91d379a0f15c1833b2381066516d7aaa15c4c;hp=79ec72315b9329c8edfbcb29e98293225a19cea4;p=vlc RTP output: fix SRTP error path --- diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c index 20b758595f..ab3907b167 100644 --- a/modules/stream_out/rtp.c +++ b/modules/stream_out/rtp.c @@ -986,7 +986,18 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt ) #ifdef HAVE_SRTP id->srtp = NULL; +#endif + vlc_mutex_init( &id->lock_sink ); + id->sinkc = 0; + id->sinkv = NULL; + id->rtsp_id = NULL; + id->p_fifo = NULL; + id->listen.fd = NULL; + id->i_caching = + (int64_t)1000 * var_GetInteger( p_stream, SOUT_CFG_PREFIX "caching"); + +#ifdef HAVE_SRTP char *key = var_CreateGetNonEmptyString (p_stream, SOUT_CFG_PREFIX"key"); if (key) { @@ -1011,16 +1022,6 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt ) } #endif - vlc_mutex_init( &id->lock_sink ); - id->sinkc = 0; - id->sinkv = NULL; - id->rtsp_id = NULL; - id->p_fifo = NULL; - id->listen.fd = NULL; - - id->i_caching = - (int64_t)1000 * var_GetInteger( p_stream, SOUT_CFG_PREFIX "caching"); - if( p_sys->psz_destination != NULL ) switch( p_sys->proto ) {