[vlc-commits] lib/media_list: narrow scope of iteration variables
Filip Roséen
git at videolan.org
Thu Oct 13 11:09:46 CEST 2016
vlc | branch: master | Filip Roséen <filip at 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 <jb at 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 );
More information about the vlc-commits
mailing list