summaryrefslogtreecommitdiffstats
path: root/video/vaapi.h
diff options
context:
space:
mode:
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);