mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 10:51:51 +00:00
Reintroduce an ugly variant of the -gui/-nogui options.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19361 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
00c76dea5c
commit
f1ee0a4db2
@ -762,6 +762,12 @@ Video filters are not applied to such frames.
|
|||||||
For B-frames even decoding is skipped completely.
|
For B-frames even decoding is skipped completely.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-(no)gui
|
||||||
|
Enable or disable the GUI interface (default depends on binary name).
|
||||||
|
Only works as the first argument on the command line.
|
||||||
|
Does not work as a config-file option.
|
||||||
|
.
|
||||||
|
.TP
|
||||||
.B \-h, \-help, \-\-help
|
.B \-h, \-help, \-\-help
|
||||||
Show short summary of options.
|
Show short summary of options.
|
||||||
.
|
.
|
||||||
|
@ -329,9 +329,8 @@ m_option_t mplayer_opts[]={
|
|||||||
{"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
{"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{"gui", "Please remove gui=yes from your config file. Run gmplayer if you want the GUI.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
|
{"gui", "The -gui option will only work as first commandline argument.\n", CONF_TYPE_PRINT, 0, 0, 0, (void *)1},
|
||||||
// {"gui", &use_gui, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_NOCMD, 0, 1, NULL},
|
{"nogui", "The -nogui option will only work as first commandline argument.\n", CONF_TYPE_PRINT, 0, 0, 0, (void *)1},
|
||||||
// {"nogui", &use_gui, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
|
|
||||||
|
|
||||||
#ifdef HAVE_NEW_GUI
|
#ifdef HAVE_NEW_GUI
|
||||||
{"skin", &skinName, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
{"skin", &skinName, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
||||||
|
@ -2625,6 +2625,10 @@ struct {double pts; vo_functions_t *vo;} vf_vo_data;
|
|||||||
tv_param_immediate = 1;
|
tv_param_immediate = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (argc > 1 && argv[1] &&
|
||||||
|
(!strcmp(argv[1], "-gui") || !strcmp(argv[1], "-nogui"))) {
|
||||||
|
use_gui = !strcmp(argv[1], "-gui");
|
||||||
|
} else
|
||||||
if ( argv[0] )
|
if ( argv[0] )
|
||||||
{
|
{
|
||||||
char *base = strrchr(argv[0], '/');
|
char *base = strrchr(argv[0], '/');
|
||||||
|
Loading…
Reference in New Issue
Block a user