diff options
Diffstat (limited to 'video/out/vo_wlshm.c')
-rw-r--r-- | video/out/vo_wlshm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/vo_wlshm.c b/video/out/vo_wlshm.c index 40c5b0da0f..3583ce3e73 100644 --- a/video/out/vo_wlshm.c +++ b/video/out/vo_wlshm.c @@ -112,8 +112,7 @@ static struct buffer *buffer_create(struct vo *vo, int width, int height) buf->vo = vo; buf->size = size; mp_image_set_params(&buf->mpi, &p->sws->dst); - buf->mpi.w = width; - buf->mpi.h = height; + mp_image_set_size(&buf->mpi, width, height); buf->mpi.planes[0] = data; buf->mpi.stride[0] = stride; buf->pool = wl_shm_create_pool(wl->shm, fd, size); |