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

input: avoids double mutex locking

parent 39aa499b
...@@ -2558,8 +2558,6 @@ static void InputUpdateMeta( input_thread_t *p_input, vlc_meta_t *p_meta ) ...@@ -2558,8 +2558,6 @@ static void InputUpdateMeta( input_thread_t *p_input, vlc_meta_t *p_meta )
input_ExtractAttachmentAndCacheArt( p_input ); input_ExtractAttachmentAndCacheArt( p_input );
} }
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;
...@@ -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