vlc | branch: master | Filip Roséen <fi...@atch.se> | Wed Oct 12 20:08:01 2016 
+0200| [3e36a9d045da74474aba19b24a92606abf2b63a9] | committer: Jean-Baptiste 
Kempf

lib/media_list: narrow scope of iteration variables

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

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

 lib/media_list.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/media_list.c b/lib/media_list.c
index 82fee60..455eb36 100644
--- a/lib/media_list.c
+++ b/lib/media_list.c
@@ -190,7 +190,6 @@ libvlc_media_list_new( libvlc_instance_t * p_inst )
 void libvlc_media_list_release( libvlc_media_list_t * p_mlist )
 {
     libvlc_media_t * p_md;
-    int i;
 
     vlc_mutex_lock( &p_mlist->refcount_lock );
     p_mlist->i_refcount--;
@@ -207,7 +206,7 @@ void libvlc_media_list_release( libvlc_media_list_t * 
p_mlist )
 
     libvlc_media_release( p_mlist->p_md );
 
-    for ( i = 0; i < vlc_array_count( &p_mlist->items ); i++ )
+    for ( int i = 0; i < vlc_array_count( &p_mlist->items ); i++ )
     {
         p_md = vlc_array_item_at_index( &p_mlist->items, i );
         libvlc_media_release( p_md );

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to