[MPlayer-cvslog] r38511 - trunk/mplayer.c

ib subversion at mplayerhq.hu
Sun May 12 19:41:08 EEST 2024


Author: ib
Date: Sun May 12 19:41:08 2024
New Revision: 38511

Log:
Make mpctx available to the GUI earlier.

Providing the context shall be the very first call to the GUI.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sun May 12 19:39:34 2024	(r38510)
+++ trunk/mplayer.c	Sun May 12 19:41:08 2024	(r38511)
@@ -2826,6 +2826,7 @@ int main(int argc, char *argv[])
 
 #ifdef CONFIG_GUI
     if (use_gui) {
+        gui(GUI_SET_CONTEXT, mpctx);
         initialized_flags |= INITIALIZED_GUI;
         cfg_read();
     }
@@ -3084,7 +3085,6 @@ int main(int argc, char *argv[])
 #ifdef CONFIG_GUI
     if (use_gui) {
         guiInit();
-        gui(GUI_SET_CONTEXT, mpctx);
         gui(GUI_SET_STATE, (void *)(intptr_t)(filename ? GUI_PLAY : GUI_STOP));
     }
 #endif


More information about the MPlayer-cvslog mailing list