diff options
author | wm4 <wm4@nowhere> | 2015-05-08 21:47:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-08 21:47:39 +0200 |
commit | f9e2d5026e4e9b0685137033dc08e2dc9034e5fc (patch) | |
tree | 7af4c8ba4f5f593df2a6a336785e145ac0ea3a67 /options/options.c | |
parent | 00130651dac758f90bf98306a9d1e569ed4155ca (diff) | |
download | mpv-f9e2d5026e4e9b0685137033dc08e2dc9034e5fc.tar.bz2 mpv-f9e2d5026e4e9b0685137033dc08e2dc9034e5fc.tar.xz |
player: add --force-window=immediate mode
This creates the window before the first file is loaded. This was
requested a bunch of times, but on the other hand a change to make this
behavior the default was reverted some time ago, because other users
hated it.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c index a902360e56..c51a948db4 100644 --- a/options/options.c +++ b/options/options.c @@ -367,7 +367,8 @@ const m_option_t mp_opts[] = { OPT_SETTINGSLIST("ao-defaults", ao_defs, 0, &ao_obj_list), OPT_STRING("audio-device", audio_device, 0), OPT_STRING("audio-client-name", audio_client_name, 0), - OPT_FLAG("force-window", force_vo, 0), + OPT_CHOICE("force-window", force_vo, 0, + ({"no", 0}, {"yes", 1}, {"immediate", 2})), OPT_FLAG("ontop", vo.ontop, M_OPT_FIXED), OPT_FLAG("border", vo.border, M_OPT_FIXED), OPT_FLAG("on-all-workspaces", vo.all_workspaces, M_OPT_FIXED), |