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.
This commit is contained in:
wm4
2016-02-15 15:14:11 +01:00
parent 012a8ef2cc
commit b7034db4af
+3
View File
@@ -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;