summaryrefslogtreecommitdiffstats
path: root/video/vaapi.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-06-16 10:31:25 -0700
committersfan5 <sfan5@live.de>2019-07-08 01:57:02 +0200
commitb33ced193e0317abde33e1ace1b569276b32e50d (patch)
tree6df270bb323baf007999e51d3c715bc64df04841 /video/vaapi.h
parentb70ed35ba4ea8c08632e585b7027090ac00a0bb8 (diff)
downloadmpv-b33ced193e0317abde33e1ace1b569276b32e50d.tar.bz2
mpv-b33ced193e0317abde33e1ace1b569276b32e50d.tar.xz
vo_gpu: hwdec_vaapi: Suppress format errors when probing
Today, we normally see a format error when probing because yuyv422 cannot be used, but it's in the normal set of probed formats. This error is distracting and confusing, so only log probing errors at the VERBOSE level. Fixes #6411
Diffstat (limited to 'video/vaapi.h')
-rw-r--r--video/vaapi.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/video/vaapi.h b/video/vaapi.h
index b2c31d8a74..6de90b7616 100644
--- a/video/vaapi.h
+++ b/video/vaapi.h
@@ -36,9 +36,12 @@ struct mp_vaapi_ctx {
void (*destroy_native_ctx)(void *native_ctx);
};
-#define CHECK_VA_STATUS(ctx, msg) \
+#define CHECK_VA_STATUS_LEVEL(ctx, msg, level) \
(status == VA_STATUS_SUCCESS ? true \
- : (MP_ERR(ctx, "%s failed (%s)\n", msg, vaErrorStr(status)), false))
+ : (MP_MSG(ctx, level, "%s failed (%s)\n", msg, vaErrorStr(status)), false))
+
+#define CHECK_VA_STATUS(ctx, msg) \
+ CHECK_VA_STATUS_LEVEL(ctx, msg, MSGL_ERR)
int va_get_colorspace_flag(enum mp_csp csp);