summaryrefslogtreecommitdiffstats
path: root/libvo/vo_vdpau.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-12-06 20:23:54 +0100
committerwm4 <wm4@mplayer2.org>2011-12-06 20:32:33 +0100
commitd4de92e80897abb64dc8ccecb7823cbe291bb52d (patch)
tree0686f943152165b2cab91a79287ea788083bc474 /libvo/vo_vdpau.c
parent421c840b3c061de89b426244fe75237a73f765de (diff)
downloadmpv-d4de92e80897abb64dc8ccecb7823cbe291bb52d.tar.bz2
mpv-d4de92e80897abb64dc8ccecb7823cbe291bb52d.tar.xz
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.
Diffstat (limited to 'libvo/vo_vdpau.c')
-rw-r--r--libvo/vo_vdpau.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c
index be4540002b..d58607e135 100644
--- a/libvo/vo_vdpau.c
+++ b/libvo/vo_vdpau.c
@@ -864,7 +864,7 @@ static int handle_preemption(struct vo *vo)
*/
static int 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)
{
struct vdpctx *vc = vo->priv;
struct vo_x11_state *x11 = vo->x11;
@@ -912,7 +912,7 @@ static int config(struct vo *vo, uint32_t width, uint32_t height,
xswamask = CWBorderPixel;
vo_x11_create_vo_window(vo, &vinfo, vo->dx, vo->dy, d_width, d_height,
- flags, CopyFromParent, "vdpau", title);
+ flags, CopyFromParent, "vdpau");
XChangeWindowAttributes(x11->display, x11->window, xswamask, &xswa);
#ifdef CONFIG_XF86VM