Commit 06bae5f9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

addons: factor code

parent 06fe2cd0
...@@ -475,7 +475,6 @@ static void *InstallerThread( void *p_data ) ...@@ -475,7 +475,6 @@ static void *InstallerThread( void *p_data )
vlc_mutex_lock( &p_entry->lock ); vlc_mutex_lock( &p_entry->lock );
p_entry->e_state = ( i_ret == VLC_SUCCESS ) ? ADDON_NOTINSTALLED p_entry->e_state = ( i_ret == VLC_SUCCESS ) ? ADDON_NOTINSTALLED
: ADDON_INSTALLED; : ADDON_INSTALLED;
vlc_mutex_unlock( &p_entry->lock );
} }
else if ( p_entry->e_state == ADDON_NOTINSTALLED ) else if ( p_entry->e_state == ADDON_NOTINSTALLED )
{ {
...@@ -491,9 +490,7 @@ static void *InstallerThread( void *p_data ) ...@@ -491,9 +490,7 @@ static void *InstallerThread( void *p_data )
vlc_mutex_lock( &p_entry->lock ); vlc_mutex_lock( &p_entry->lock );
p_entry->e_state = ( i_ret == VLC_SUCCESS ) ? ADDON_INSTALLED p_entry->e_state = ( i_ret == VLC_SUCCESS ) ? ADDON_INSTALLED
: ADDON_NOTINSTALLED; : ADDON_NOTINSTALLED;
vlc_mutex_unlock( &p_entry->lock );
} }
else
vlc_mutex_unlock( &p_entry->lock ); vlc_mutex_unlock( &p_entry->lock );
/* !DO WORK */ /* !DO WORK */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment