[vlc-devel] [PATCH 02/13] lib/media_list: narrow scope of iteration variables
Filip Roséen
filip at atch.se
Wed Oct 12 20:08:01 CEST 2016
---
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 );
--
2.10.0
More information about the vlc-devel
mailing list