[vlc-commits] addons: factor code

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


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

addons: factor code

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

 src/misc/addons.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/misc/addons.c b/src/misc/addons.c
index a32eb8a..9676a98 100644
--- a/src/misc/addons.c
+++ b/src/misc/addons.c
@@ -475,7 +475,6 @@ static void *InstallerThread( void *p_data )
             vlc_mutex_lock( &p_entry->lock );
             p_entry->e_state = ( i_ret == VLC_SUCCESS ) ? ADDON_NOTINSTALLED
                                                         : ADDON_INSTALLED;
-            vlc_mutex_unlock( &p_entry->lock );
         }
         else if ( p_entry->e_state == ADDON_NOTINSTALLED )
         {
@@ -491,10 +490,8 @@ static void *InstallerThread( void *p_data )
             vlc_mutex_lock( &p_entry->lock );
             p_entry->e_state = ( i_ret == VLC_SUCCESS ) ? ADDON_INSTALLED
                                                         : ADDON_NOTINSTALLED;
-            vlc_mutex_unlock( &p_entry->lock );
         }
-        else
-            vlc_mutex_unlock( &p_entry->lock );
+        vlc_mutex_unlock( &p_entry->lock );
         /* !DO WORK */
 
         event.u.addon_generic_event.p_entry = p_entry;



More information about the vlc-commits mailing list