Commit 841460fe authored by Thomas Guillem's avatar Thomas Guillem Committed by Rémi Denis-Courmont

libvlc: media: lock media_list

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 9b2f91fa
......@@ -141,7 +141,11 @@ static void input_item_subitem_added( const vlc_event_t *p_event,
/* Add this to our media list */
p_subitems = media_get_subitems( p_md );
if( p_subitems != NULL )
{
libvlc_media_list_lock( p_subitems );
libvlc_media_list_internal_add_media( p_subitems, p_md_child );
libvlc_media_list_unlock( p_subitems );
}
/* Construct the event */
event.type = libvlc_MediaSubItemAdded;
......
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