[MPlayer-cvslog] r22907 - trunk/Gui/win32/interface.c

vayne subversion at mplayerhq.hu
Tue Apr 3 17:57:56 CEST 2007


Author: vayne
Date: Tue Apr  3 17:57:55 2007
New Revision: 22907

Modified:
   trunk/Gui/win32/interface.c

Log:
thread compatibility fixes for Win9x. based on patch by sergemp at mail dot ru.

Modified: trunk/Gui/win32/interface.c
==============================================================================
--- trunk/Gui/win32/interface.c	(original)
+++ trunk/Gui/win32/interface.c	Tue Apr  3 17:57:55 2007
@@ -491,11 +491,14 @@ static DWORD WINAPI GuiThread(void)
 
 void guiInit(void)
 {
+    DWORD threadId;
     memset(&guiIntfStruct, 0, sizeof(guiIntfStruct));
     /* Create The gui thread */
     if (!mygui)
-        mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Creating GUI Thread 0x%04x\n",
-              (int) CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) GuiThread, NULL, 0, NULL));
+    {
+        CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) GuiThread, NULL, 0, &threadId);
+        mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Creating GUI Thread 0x%04x\n", threadId);
+    }
 
     /* Wait until the gui is created */
     while(!mygui) Sleep(100);



More information about the MPlayer-cvslog mailing list