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

Attach and join the IPC helper

parent 8f26ca26
...@@ -193,6 +193,7 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv ...@@ -193,6 +193,7 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv
vlc_object_release (p_helper); vlc_object_release (p_helper);
p_helper = NULL; p_helper = NULL;
} }
vlc_object_attach (p_helper, p_this);
/* Initialization done. /* Initialization done.
* Release the mutex to unblock other instances */ * Release the mutex to unblock other instances */
...@@ -374,7 +375,10 @@ void system_End( libvlc_int_t *p_this ) ...@@ -374,7 +375,10 @@ void system_End( libvlc_int_t *p_this )
} }
if (p_helper && p_helper->p_parent == VLC_OBJECT(p_this) ) if (p_helper && p_helper->p_parent == VLC_OBJECT(p_this) )
{ {
/* FIXME: thread-safety + join the thread(?)... */ /* FIXME: thread-safety... */
SendMessage( NULL, WM_QUIT, 0, 0 );
vlc_thread_join (p_helper);
vlc_object_detach (p_helper);
vlc_object_release (p_helper); vlc_object_release (p_helper);
p_helper = NULL; p_helper = NULL;
} }
......
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