summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-08 21:47:39 +0200
committerwm4 <wm4@nowhere>2015-05-08 21:47:39 +0200
commitf9e2d5026e4e9b0685137033dc08e2dc9034e5fc (patch)
tree7af4c8ba4f5f593df2a6a336785e145ac0ea3a67 /player
parent00130651dac758f90bf98306a9d1e569ed4155ca (diff)
downloadmpv-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 'player')
-rw-r--r--player/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index cb7fda3e49..b80bc994bb 100644
--- a/player/main.c
+++ b/player/main.c
@@ -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;
}