From ab7ac46bcc3bb68cfa3d4dfc920f8bd7143eebe0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 21 Sep 2015 21:22:20 +0200 Subject: player: some more --force-window fixes Sigh... After the recent changes, another regression appeared. This time, the VO window wasn't cleared when changing from video to a non- video file (such as audio-only with no cover art). Fix this by properly taking the handle_force_window() bool parameter into account. Also, the info message could be printed twice, which is harmless but ugly. So just remove the message. Also, do some more minor cleanups (like fixing the comment, which was completely outdated). --- player/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index b2e94b1a37..eae7d545d2 100644 --- a/player/core.h +++ b/player/core.h @@ -488,7 +488,7 @@ void execute_queued_seek(struct MPContext *mpctx); void run_playloop(struct MPContext *mpctx); void mp_idle(struct MPContext *mpctx); void idle_loop(struct MPContext *mpctx); -int handle_force_window(struct MPContext *mpctx, bool reconfig); +int handle_force_window(struct MPContext *mpctx, bool force); void add_frame_pts(struct MPContext *mpctx, double pts); int get_past_frame_durations(struct MPContext *mpctx, double *fd, int num); void seek_to_last_frame(struct MPContext *mpctx); -- cgit v1.2.3