From b2149f7fe102f7d00beb2051e179160e47cbcbc6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 21 Jan 2015 22:12:30 +0100 Subject: vaapi: minor simplification --- video/out/vo_vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_vaapi.c') diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c index f8edd83b4e..21e604f235 100644 --- a/video/out/vo_vaapi.c +++ b/video/out/vo_vaapi.c @@ -177,7 +177,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags) static int query_format(struct vo *vo, int imgfmt) { struct priv *p = vo->priv; - if (imgfmt == IMGFMT_VAAPI || va_image_format_from_imgfmt(p->va_image_formats, imgfmt)) + if (imgfmt == IMGFMT_VAAPI || va_image_format_from_imgfmt(p->mpvaapi, imgfmt)) return 1; return 0; -- cgit v1.2.3