[vlc-devel] commit: Attach and join the IPC helper ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Aug 14 16:56:16 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Aug 14 17:59:03 2008 +0300| [c53bb185e736e4b38aad3c83860cfbe35945cb61] | committer: Rémi Denis-Courmont 

Attach and join the IPC helper

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c53bb185e736e4b38aad3c83860cfbe35945cb61
---

 src/misc/win32_specific.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c
index 9e27ca9..85d52a5 100644
--- a/src/misc/win32_specific.c
+++ b/src/misc/win32_specific.c
@@ -193,6 +193,7 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv
                 vlc_object_release (p_helper);
                 p_helper = NULL;
             }
+            vlc_object_attach (p_helper, p_this);
 
             /* Initialization done.
              * Release the mutex to unblock other instances */
@@ -374,7 +375,10 @@ void system_End( libvlc_int_t *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);
         p_helper = NULL;
     }




More information about the vlc-devel mailing list