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 18:00:03 +02:00
parent 0901fc8e0e
commit b8382aabb3
+1 -1
View File
@@ -341,7 +341,7 @@ static VAImage *va_surface_image_alloc(struct va_surface *surface,
va_surface_image_destroy(surface); va_surface_image_destroy(surface);
VAStatus status = vaDeriveImage(p->display, surface->id, &p->image); 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 */ /* vaDeriveImage() is supported, check format */
if (p->image.format.fourcc == format->fourcc && if (p->image.format.fourcc == format->fourcc &&
p->image.width == surface->w && p->image.height == surface->h) { p->image.width == surface->w && p->image.height == surface->h) {