summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-15 15:14:11 +0100
committerwm4 <wm4@nowhere>2016-02-15 15:14:11 +0100
commitb7034db4afcc0a90ff88fb422cd929b2c15f535d (patch)
tree4ddce28c113be0a67890c3e07db684125e36bb99
parent012a8ef2cc35aa54c1d631a4a0bbf3639e6dff37 (diff)
downloadmpv-b7034db4afcc0a90ff88fb422cd929b2c15f535d.tar.bz2
mpv-b7034db4afcc0a90ff88fb422cd929b2c15f535d.tar.xz
player: restore old/correct --force-window behavior
When playback of a video ends, and the next file has no video at all (no cover art or anything), then the window must be cleared. This also resizes the window forcibly, which is by design. Fixes #2825.
-rw-r--r--player/loadfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 1e3a02726d..bd48bb4b0e 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -1321,6 +1321,9 @@ reopen_file:
"Displaying attached picture. Use --no-audio-display to prevent this.\n");
}
+ if (!mpctx->vo_chain)
+ handle_force_window(mpctx, true);
+
MP_VERBOSE(mpctx, "Starting playback...\n");
mpctx->playback_initialized = true;