diff options
author | Philip Langdale <philipl@overt.org> | 2019-06-16 10:31:25 -0700 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-07-08 01:57:02 +0200 |
commit | b33ced193e0317abde33e1ace1b569276b32e50d (patch) | |
tree | 6df270bb323baf007999e51d3c715bc64df04841 /video/out | |
parent | b70ed35ba4ea8c08632e585b7027090ac00a0bb8 (diff) | |
download | mpv-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/out')
-rw-r--r-- | video/out/hwdec/hwdec_vaapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/hwdec/hwdec_vaapi.c b/video/out/hwdec/hwdec_vaapi.c index eed79799e9..8ca2ab134e 100644 --- a/video/out/hwdec/hwdec_vaapi.c +++ b/video/out/hwdec/hwdec_vaapi.c @@ -417,7 +417,8 @@ static int mapper_map(struct ra_hwdec_mapper *mapper) VA_EXPORT_SURFACE_READ_ONLY | VA_EXPORT_SURFACE_SEPARATE_LAYERS, &p->desc); - if (!CHECK_VA_STATUS(mapper, "vaExportSurfaceHandle()")) { + if (!CHECK_VA_STATUS_LEVEL(mapper, "vaExportSurfaceHandle()", + p_owner->probing_formats ? MSGL_V : MSGL_ERR)) { if (status == VA_STATUS_ERROR_UNIMPLEMENTED) p->esh_not_implemented = true; goto esh_failed; |