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.
This commit is contained in:
wm4
2015-05-08 21:47:39 +02:00
parent 00130651da
commit f9e2d5026e
3 changed files with 8 additions and 3 deletions

View File

@@ -472,6 +472,8 @@ int mp_initialize(struct MPContext *mpctx, char **options)
"the selected video_out (-vo) device.\n");
return -1;
}
if (opts->force_vo == 2)
handle_force_window(mpctx, false);
mpctx->mouse_cursor_visible = true;
}