]> git.sesse.net Git - vlc/commitdiff
there's no vlc_thread_create(p_helper)
authorGeoffroy Couprie <geo.couprie@gmail.com>
Tue, 16 Sep 2008 00:10:05 +0000 (02:10 +0200)
committerGeoffroy Couprie <geo.couprie@gmail.com>
Tue, 16 Sep 2008 00:10:59 +0000 (02:10 +0200)
src/misc/win32_specific.c

index 5de59a5f718999d1523628a9a642d2f8ec2904d5..84f7dd3b12c026bd97e0f6cb6fa2ad3c791c679d 100644 (file)
@@ -368,16 +368,21 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
  *****************************************************************************/
 void system_End( libvlc_int_t *p_this )
 {
+    HWND ipcwindow;
     if( p_this && vlc_global() )
     {
         free( vlc_global()->psz_vlcpath );
         vlc_global()->psz_vlcpath = NULL;
     }
+
+    if( ipcwindow = FindWindow( 0, L"VLC ipc "VERSION ) )
+    {
+        SendMessage( ipcwindow, WM_QUIT, 0, 0 );
+    }
+
     if (p_helper && p_helper->p_parent == VLC_OBJECT(p_this) )
     {
         /* 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;