[vlc-commits] addons: cosmetics

Rémi Denis-Courmont git at videolan.org
Thu Jul 9 18:33:22 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul  9 19:15:00 2015 +0300| [a3769dc4a6f70c5bc5ae3dd16786068aea7184cb] | committer: Rémi Denis-Courmont

addons: cosmetics

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

 src/misc/addons.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/misc/addons.c b/src/misc/addons.c
index 9676a98..5f3f73b 100644
--- a/src/misc/addons.c
+++ b/src/misc/addons.c
@@ -320,11 +320,11 @@ static void LoadLocalStorage( addons_manager_t *p_manager )
 static void *FinderThread( void *p_data )
 {
     addons_manager_t *p_manager = p_data;
-    int i_cancel;
-    char *psz_uri;
 
     for( ;; )
     {
+        char *psz_uri;
+
         vlc_mutex_lock( &p_manager->p_priv->finder.lock );
         mutex_cleanup_push( &p_manager->p_priv->finder.lock );
         while( p_manager->p_priv->finder.uris.i_size == 0 )
@@ -337,10 +337,11 @@ static void *FinderThread( void *p_data )
         vlc_cleanup_pop();
         vlc_mutex_unlock( &p_manager->p_priv->finder.lock );
 
+        int i_cancel = vlc_savecancel();
+
         addons_finder_t *p_finder =
                 vlc_custom_create( p_manager->p_priv->p_parent, sizeof( *p_finder ), "entries finder" );
 
-        i_cancel = vlc_savecancel();
         if( p_finder != NULL )
         {
             p_finder->i_flags |= OBJECT_FLAGS_NOINTERACT;



More information about the vlc-commits mailing list