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

Init the structure lock just once

(should probably be a per-instance lock instead though)
parent e4b68317
...@@ -147,10 +147,12 @@ void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size, ...@@ -147,10 +147,12 @@ void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size,
if( i_type == VLC_OBJECT_LIBVLC ) if( i_type == VLC_OBJECT_LIBVLC )
p_new->p_libvlc = (libvlc_int_t*)p_new; p_new->p_libvlc = (libvlc_int_t*)p_new;
else else
{
p_new->p_libvlc = NULL; p_new->p_libvlc = NULL;
vlc_mutex_init( &structure_lock );
}
p_this = p_priv->next = p_priv->prev = p_new; p_this = p_priv->next = p_priv->prev = p_new;
vlc_mutex_init( &structure_lock );
} }
else else
p_new->p_libvlc = p_this->p_libvlc; p_new->p_libvlc = p_this->p_libvlc;
......
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