diff options
author | wm4 <wm4@nowhere> | 2013-09-27 17:59:01 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-27 18:00:03 +0200 |
commit | b8382aabb338db49b1cc0344a7ec386fa7f7f1c2 (patch) | |
tree | 87d96b6fc48352a9caace75307dfc954b0a50aba | |
parent | 0901fc8e0ea4b6c0337add563d1763f0db238023 (diff) | |
download | mpv-b8382aabb338db49b1cc0344a7ec386fa7f7f1c2.tar.bz2 mpv-b8382aabb338db49b1cc0344a7ec386fa7f7f1c2.tar.xz |
vaapi: make vaDeriveImage() less verbose
This can just be not supported, so making it look like a real error
doesn't make much sense.
-rw-r--r-- | video/vaapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |