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

Filip Roséen git at videolan.org
Thu May 18 18:09:47 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:19:28 2017 +0200| [bb28dbbe7f21dfbeb6fff9563b66e8a3fdcc267c] | committer: Rémi Denis-Courmont

stream_out/duplicate: Close: narrow scope of iteration variable

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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] );



More information about the vlc-commits mailing list