From b8382aabb338db49b1cc0344a7ec386fa7f7f1c2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 27 Sep 2013 17:59:01 +0200 Subject: vaapi: make vaDeriveImage() less verbose This can just be not supported, so making it look like a real error doesn't make much sense. --- video/vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/vaapi.c b/video/vaapi.c index b7c6013e79..2f31edee66 100644 --- a/video/vaapi.c +++ b/video/vaapi.c @@ -341,7 +341,7 @@ static VAImage *va_surface_image_alloc(struct va_surface *surface, va_surface_image_destroy(surface); VAStatus status = vaDeriveImage(p->display, surface->id, &p->image); - if (check_va_status(status, "vaDeriveImage()")) { + if (status != VA_STATUS_SUCCESS) { /* vaDeriveImage() is supported, check format */ if (p->image.format.fourcc == format->fourcc && p->image.width == surface->w && p->image.height == surface->h) { -- cgit v1.2.3