[vlc-commits] rtp: fix shadowing

Rémi Denis-Courmont git at videolan.org
Fri Jul 7 20:05:47 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jul  7 21:05:13 2017 +0300| [34818186f0638b098f6e09856e2322e7d2eb75c8] | committer: Rémi Denis-Courmont

rtp: fix shadowing

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

 modules/stream_out/rtp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 2475aa1469..8da304402a 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -394,7 +394,6 @@ static int Open( vlc_object_t *p_this )
 {
     sout_stream_t       *p_stream = (sout_stream_t*)p_this;
     sout_stream_sys_t   *p_sys = NULL;
-    config_chain_t      *p_cfg = NULL;
     char                *psz;
     bool          b_rtsp = false;
 
@@ -420,7 +419,7 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    for( p_cfg = p_stream->p_cfg; p_cfg != NULL; p_cfg = p_cfg->p_next )
+    for( config_chain_t *p_cfg = p_stream->p_cfg; p_cfg != NULL; p_cfg = p_cfg->p_next )
     {
         if( !strcmp( p_cfg->psz_name, "sdp" )
          && ( p_cfg->psz_value != NULL )



More information about the vlc-commits mailing list