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.
This commit is contained in:
wm4 2015-09-20 17:05:14 +02:00
parent 3586e6ceeb
commit 9d2bc9a4ac
1 changed files with 3 additions and 0 deletions

View File

@ -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: