diff options
author | vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-03 15:57:55 +0000 |
---|---|---|
committer | vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-03 15:57:55 +0000 |
commit | f49d7599ee65a5e408fa5ee2b5570dbeeb689edd (patch) | |
tree | 048c4f5bfcc15a9304b50bee2b81479bba1ea47d | |
parent | 2868cadfff4564f1ae922606844ba6be9c57c97f (diff) | |
download | mpv-f49d7599ee65a5e408fa5ee2b5570dbeeb689edd.tar.bz2 mpv-f49d7599ee65a5e408fa5ee2b5570dbeeb689edd.tar.xz |
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
-rw-r--r-- | Gui/win32/interface.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Gui/win32/interface.c b/Gui/win32/interface.c index dafdaa556b..4c165f037e 100644 --- a/Gui/win32/interface.c +++ b/Gui/win32/interface.c @@ -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); |