From 2f4e01e772e894c42021cf15d7d6961ff145ff7e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Sep 2015 17:58:02 +0200 Subject: player: make force-window in auto-profiles actually work The previous commit was incomplete (and I didn't notice due to a broken test procedure). The annoying part is that actually creating the VO was separate; redo this and merge the code for this into handle_force_window() as well. This will also make implementing proper reaction to runtime option changes easier. (Only the part for actually listening to option changes is missing.) --- player/loadfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index 75c6a19a29..4e32ccd6b6 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1072,8 +1072,7 @@ static void play_current_file(struct MPContext *mpctx) mpctx->max_frames = opts->play_frames; - if (opts->force_vo == 2) - handle_force_window(mpctx, false); + handle_force_window(mpctx, false); MP_INFO(mpctx, "Playing: %s\n", mpctx->filename); -- cgit v1.2.3