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

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Apr 3 19:52:39 CEST 2007


Hello,
On Tue, Apr 03, 2007 at 05:57:56PM +0200, vayne wrote:
> 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);
> +    }

Moving DWORD threadId; into this newly created block might make the
code a tiny bit more readable.

Greetings,
Reimar Döffinger



More information about the MPlayer-cvslog mailing list