Commit 74e5ab00 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_instance.c: Make sure we initialize every md's variables in _new_from_input_thread.

parent f85de941
......@@ -188,6 +188,11 @@ libvlc_media_instance_t * libvlc_media_instance_new_from_input_thread(
p_mi->p_libvlc_instance = p_libvlc_instance;
p_mi->i_input_id = p_input->i_object_id;
/* same strategy as before */
p_mi->i_refcount = 1;
/* same strategy as before */
vlc_mutex_init( p_mi->p_libvlc_instance->p_libvlc_int,
&p_mi->object_lock );
/* will be released in media_instance_release() */
vlc_object_yield( p_input );
......
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