Commit 9b62d745 authored by Rafaël Carré's avatar Rafaël Carré

input: avoids double mutex locking

parent 39aa499b
...@@ -2559,8 +2559,6 @@ static void InputUpdateMeta( input_thread_t *p_input, vlc_meta_t *p_meta ) ...@@ -2559,8 +2559,6 @@ static void InputUpdateMeta( input_thread_t *p_input, vlc_meta_t *p_meta )
} }
free( psz_arturl ); free( psz_arturl );
input_item_SetPreparsed( p_item, VLC_TRUE );
/* A bit ugly */ /* A bit ugly */
p_meta = NULL; p_meta = NULL;
if( vlc_dictionary_keys_count( &p_item->p_meta->extra_tags ) > 0 ) if( vlc_dictionary_keys_count( &p_item->p_meta->extra_tags ) > 0 )
...@@ -2570,6 +2568,8 @@ static void InputUpdateMeta( input_thread_t *p_input, vlc_meta_t *p_meta ) ...@@ -2570,6 +2568,8 @@ static void InputUpdateMeta( input_thread_t *p_input, vlc_meta_t *p_meta )
} }
vlc_mutex_unlock( &p_item->lock ); vlc_mutex_unlock( &p_item->lock );
input_item_SetPreparsed( p_item, VLC_TRUE );
if( i_arturl_event == VLC_TRUE ) if( i_arturl_event == VLC_TRUE )
{ {
vlc_event_t event; vlc_event_t event;
......
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