diff options
Diffstat (limited to 'video/vdpau.c')
-rw-r--r-- | video/vdpau.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/vdpau.c b/video/vdpau.c index 55ca8d95ce..9db161426c 100644 --- a/video/vdpau.c +++ b/video/vdpau.c @@ -37,8 +37,8 @@ static struct mp_image *download_image(struct mp_hwdec_ctx *hwctx, VdpStatus vdp_st; struct mp_image *res = NULL; - int w = mpi->params.d_w; - int h = mpi->params.d_h; + int w, h; + mp_image_params_get_dsize(&mpi->params, &w, &h); // Abuse this lock for our own purposes. It could use its own lock instead. pthread_mutex_lock(&ctx->pool_lock); |