aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-02-15 15:14:11 +0100
committerGravatar wm4 <wm4@nowhere>2016-02-15 15:14:11 +0100
commitb7034db4afcc0a90ff88fb422cd929b2c15f535d (patch)
tree4ddce28c113be0a67890c3e07db684125e36bb99 /player/loadfile.c
parent012a8ef2cc35aa54c1d631a4a0bbf3639e6dff37 (diff)
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.
Diffstat (limited to 'player/loadfile.c')
-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;