From 9d2bc9a4ac6d7e547a95d18204cd74efa40977c7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Sep 2015 17:05:14 +0200 Subject: 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. --- player/loadfile.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player/loadfile.c') 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: -- cgit v1.2.3