mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
thread compatibility fixes for Win9x. based on patch by sergemp at mail dot ru.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22907 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2868cadfff
commit
f49d7599ee
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user