[vlc-devel] commit: there's no vlc_thread_create(p_helper) (Geoffroy Couprie )

git version control git at videolan.org
Tue Sep 16 02:07:50 CEST 2008


vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Tue Sep 16 02:10:05 2008 +0200| [f2e48db1350361b4b87622f872807a4a6250672e] | committer: Geoffroy Couprie 

there's no vlc_thread_create(p_helper)

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

 src/misc/win32_specific.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c
index 5de59a5..84f7dd3 100644
--- a/src/misc/win32_specific.c
+++ b/src/misc/win32_specific.c
@@ -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;




More information about the vlc-devel mailing list