vaapi: make vaDeriveImage() less verbose

This can just be not supported, so making it look like a real error
doesn't make much sense.
This commit is contained in:
wm4 2013-09-27 17:59:01 +02:00
parent 0901fc8e0e
commit b8382aabb3
1 changed files with 1 additions and 1 deletions

View File

@ -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) {