[MPlayer-cvslog] r34173 - trunk/gui/win32/wincfg.c

ib subversion at mplayerhq.hu
Sat Oct 1 19:30:43 CEST 2011


Author: ib
Date: Sat Oct  1 19:30:43 2011
New Revision: 34173

Log:
Make idle mode default in Win32 GUI.

Idle mode is required to keep gmplayer around after a file is done.
This already is the default behavior for the X11/GTK GUI.

Patch by Stephen Sheldon, sfsheldo gmail com.

Modified:
   trunk/gui/win32/wincfg.c

Modified: trunk/gui/win32/wincfg.c
==============================================================================
--- trunk/gui/win32/wincfg.c	Sat Oct  1 17:49:19 2011	(r34172)
+++ trunk/gui/win32/wincfg.c	Sat Oct  1 19:30:43 2011	(r34173)
@@ -84,6 +84,7 @@ static const m_option_t gui_opts[] =
     {   "gui_sub_pos_y", &gui_sub_pos_y, CONF_TYPE_INT, 0, 0, 0, NULL },
     {   "sub_window", &sub_window, CONF_TYPE_FLAG, 0, 0, 1, NULL},
     {   "console", &console, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+    {   "idle", &player_idle_mode, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
     {   NULL, NULL, 0, 0, 0, 0, NULL }
 };
 
@@ -98,6 +99,8 @@ int cfg_read(void)
 {
     char *cfg = get_path("gui.conf");
 
+    player_idle_mode = 1;   // GUI is in idle mode by default
+
     /* read configuration */
     mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] [cfg] reading config file: %s\n", cfg);
     gui_conf = m_config_new();


More information about the MPlayer-cvslog mailing list