summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-25 20:47:46 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-25 20:47:46 +0200
commitdc2ebae8cf1d4207668d4602bcd611e990ed923b (patch)
tree85a0009f051ba283a3d405a59082b265ac8364c1 /video
parente66049c31be603f1e268df4f7812ec7f27c4ea34 (diff)
downloadmpv-dc2ebae8cf1d4207668d4602bcd611e990ed923b.tar.bz2
mpv-dc2ebae8cf1d4207668d4602bcd611e990ed923b.tar.xz
vo_corevideo: convert to use reconfig instead of config
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_corevideo.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/video/out/vo_corevideo.c b/video/out/vo_corevideo.c
index 731f865ffb..57ebb04336 100644
--- a/video/out/vo_corevideo.c
+++ b/video/out/vo_corevideo.c
@@ -142,18 +142,17 @@ static int init_gl(struct vo *vo, uint32_t d_width, uint32_t d_height)
return 1;
}
-static int config(struct vo *vo, uint32_t width, uint32_t height,
- uint32_t d_width, uint32_t d_height, uint32_t flags,
- uint32_t format)
+static int reconfig(struct vo *vo, struct mp_image_params *params, int flags)
{
struct priv *p = vo->priv;
p->fns.uninit(vo);
- p->image_width = width;
- p->image_height = height;
+ p->image_width = params->w;
+ p->image_height = params->h;
int mpgl_caps = MPGL_CAP_GL_LEGACY;
- if (!mpgl_config_window(p->mpglctx, mpgl_caps, d_width, d_height, flags))
+ if (!mpgl_config_window(
+ p->mpglctx, mpgl_caps, params->d_w, params->d_h, flags))
return -1;
init_gl(vo, vo->dwidth, vo->dheight);
@@ -598,7 +597,7 @@ const struct vo_driver video_out_corevideo = {
},
.preinit = preinit,
.query_format = query_format,
- .config = config,
+ .reconfig = reconfig,
.control = control,
.draw_image = draw_image,
.draw_osd = draw_osd,