[vlc-commits] fingerprinter: remove fingerprinter_sys_t.i

Rémi Denis-Courmont git at videolan.org
Wed Jul 8 20:16:32 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul  8 21:16:13 2015 +0300| [8bfce149613114738ff38148a4f22d3b8df8411c] | committer: Rémi Denis-Courmont

fingerprinter: remove fingerprinter_sys_t.i

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

 modules/misc/fingerprinter.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/misc/fingerprinter.c b/modules/misc/fingerprinter.c
index 72d68be..043331e 100644
--- a/modules/misc/fingerprinter.c
+++ b/modules/misc/fingerprinter.c
@@ -54,9 +54,6 @@ struct fingerprinter_sys_t
     {
         vlc_array_t         *queue;
     } processing;
-
-    /* clobberable by cleanups */
-    int                     i;
 };
 
 static int  Open            (vlc_object_t *);
@@ -287,11 +284,10 @@ static void *Run( void *opaque )
 
         QueueIncomingRequests( p_sys );
 
-        for ( p_sys->i = 0 ; p_sys->i < vlc_array_count( p_sys->processing.queue ); p_sys->i++ )
+        for ( int i = 0 ; i < vlc_array_count( p_sys->processing.queue ); i++ )
         {
-            fingerprint_request_t *p_data = vlc_array_item_at_index( p_sys->processing.queue, p_sys->i );
-
             int canc = vlc_savecancel();
+            fingerprint_request_t *p_data = vlc_array_item_at_index( p_sys->processing.queue, i );
 
             char *psz_uri = input_item_GetURI( p_data->p_item );
             if ( psz_uri != NULL )



More information about the vlc-commits mailing list