summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-20 17:05:14 +0200
committerwm4 <wm4@nowhere>2015-09-20 17:05:14 +0200
commit9d2bc9a4ac6d7e547a95d18204cd74efa40977c7 (patch)
treeffc7f3ecd7d738852e828bb5192e3c4b0141d48b /player/loadfile.c
parent3586e6ceeb35da315883449cec3929a9d56261fe (diff)
downloadmpv-9d2bc9a4ac6d7e547a95d18204cd74efa40977c7.tar.bz2
mpv-9d2bc9a4ac6d7e547a95d18204cd74efa40977c7.tar.xz
player: make force-window=immediate work in auto-profiles
This is a bad hack; the correct way to handle this would be implementing profiles differently, and then listen to option changes and act on them dynamically.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index c6f0a17276..75c6a19a29 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -1072,6 +1072,9 @@ static void play_current_file(struct MPContext *mpctx)
mpctx->max_frames = opts->play_frames;
+ if (opts->force_vo == 2)
+ handle_force_window(mpctx, false);
+
MP_INFO(mpctx, "Playing: %s\n", mpctx->filename);
reopen_file: