From 168a595bfeb97be89da314dcc652b7c4782e43e5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 15 Jun 2013 19:04:20 +0200 Subject: video/out: introduce VOCTRL_UPDATE_WINDOW_TITLE Instead of implicitly changing the window title on config(), do it as part of the new VOCTRL. At first I wanted to make all VOs use the VOCTRL argument directly, but on a second thought it appears vo_get_window_title() is much more useful for some (namely, if the window is created lazily on first config()). Not all VOs are changed. Wayland and OSX have to follow. --- core/mplayer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/mplayer.c b/core/mplayer.c index 5e1d58835e..4d6afd656c 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -2365,6 +2365,7 @@ static void vo_update_window_title(struct MPContext *mpctx) char *title = mp_property_expand_string(mpctx, mpctx->opts.wintitle); talloc_free(mpctx->video_out->window_title); mpctx->video_out->window_title = talloc_steal(mpctx, title); + vo_control(mpctx->video_out, VOCTRL_UPDATE_WINDOW_TITLE, title); } static void update_fps(struct MPContext *mpctx) -- cgit v1.2.3