[MPlayer-dev-eng] [PATCH] Windows GUI with mingw64 and cygwin revised part 2

Stephen Sheldon sfsheldo at gmail.com
Fri May 6 14:06:36 CEST 2011


Ingo Brückl <ib <at> wupperonline.de> writes:


> 
> BTW, you said you "included process.h to satisfy the call to _beginthreadex",
> but now _beginthreadex is gone. Is process.h even so necessary?
> 
> Ingo
> 

No, process.h is not required for CreateThread.
Thank you for applying my patches.

Here is the patch for CreateThread all by itself.

Index: gui/win32/interface.c
===================================================================
--- gui/win32/interface.c	(revision 33388)
+++ gui/win32/interface.c	(working copy)
@@ -493,7 +493,7 @@
     /* Create The gui thread */
     if (!mygui)
     {
-        hThread = _beginthreadex(NULL, 0, GuiThread, NULL, 0, &threadId);
+        hThread = CreateThread(NULL, 0, GuiThread, NULL, 0, &threadId);
         mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Creating GUI Thread 0x%04x\n",
threadId);
     }
 






More information about the MPlayer-dev-eng mailing list