mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
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:
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user