From d4de92e80897abb64dc8ccecb7823cbe291bb52d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 6 Dec 2011 20:23:54 +0100 Subject: libvo: remove title argument from struct vo_driver.config This affects only the "new" VO API. The config() title argument was barely used, and it's hardcoded to "MPlayer" in vf_vo.c. The X11 and the Cocoa GUI backends, which are the only ones properly supporting window titles, ignored this argument. Remove the title argument. Add the vo_get_window_title function. All GUI VOs are supposed to use it for the window title. --- libvo/video_out.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libvo/video_out.h') diff --git a/libvo/video_out.h b/libvo/video_out.h index bd7b2e8fa5..e5d2f78c8a 100644 --- a/libvo/video_out.h +++ b/libvo/video_out.h @@ -188,7 +188,7 @@ struct vo_driver { */ int (*config)(struct vo *vo, uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, - char *title, uint32_t format); + uint32_t format); /* * Control interface @@ -298,7 +298,7 @@ struct vo *init_best_video_out(struct MPOpts *opts, struct vo_x11_state *x11, struct input_ctx *input_ctx); int vo_config(struct vo *vo, uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, - char *title, uint32_t format); + uint32_t format); void list_video_out(void); int vo_control(struct vo *vo, uint32_t request, void *data); @@ -313,6 +313,7 @@ void vo_check_events(struct vo *vo); void vo_seek_reset(struct vo *vo); void vo_destroy(struct vo *vo); +const char *vo_get_window_title(struct vo *vo); // NULL terminated array of all drivers extern const struct vo_driver *video_out_drivers[]; -- cgit v1.2.3