diff options
author | wm4 <wm4@nowhere> | 2015-09-20 17:58:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-20 17:58:02 +0200 |
commit | 2f4e01e772e894c42021cf15d7d6961ff145ff7e (patch) | |
tree | bb47a39210702e516fb795cb1ce1adb705b7a40b /player/loadfile.c | |
parent | 9d2bc9a4ac6d7e547a95d18204cd74efa40977c7 (diff) | |
download | mpv-2f4e01e772e894c42021cf15d7d6961ff145ff7e.tar.bz2 mpv-2f4e01e772e894c42021cf15d7d6961ff145ff7e.tar.xz |
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.)
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |