[vlc-devel] [PATCH] stream_out/duplicate: Close: narrow scope of iteration variable

Filip Roséen filip at atch.se
Thu May 18 12:19:28 CEST 2017


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

diff --git a/modules/stream_out/duplicate.c b/modules/stream_out/duplicate.c
index e51d9c1693..983004d82f 100644
--- a/modules/stream_out/duplicate.c
+++ b/modules/stream_out/duplicate.c
@@ -165,10 +165,8 @@ static void Close( vlc_object_t * p_this )
     sout_stream_t     *p_stream = (sout_stream_t*)p_this;
     sout_stream_sys_t *p_sys = p_stream->p_sys;
 
-    int i;
-
     msg_Dbg( p_stream, "closing a duplication" );
-    for( i = 0; i < p_sys->i_nb_streams; i++ )
+    for( int i = 0; i < p_sys->i_nb_streams; i++ )
     {
         sout_StreamChainDelete(p_sys->pp_streams[i], p_sys->pp_last_streams[i]);
         free( p_sys->ppsz_select[i] );
-- 
2.12.2


More information about the vlc-devel mailing list