From f23dcfef82dece48f1e1877a66f2cc6f2a6501cb Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 11 Jan 2020 16:16:20 +0100 Subject: vo_gpu: hwdec_vaapi: silence warning during probing hwdec_vaapi tries to probe all available surface formats in advance. For that, we iterate over _all_ profiles in an attempt to collect possible surface formats. This means we try profiles we normally wouldn't use for decoding or filtering, and which could be "unrelated" services. It seems some drivers report at least one profile, for which vaQueryConfigEntrypoints() fails (because the profile is not supported; not sure why it lists it, then). So turn the error message into a verbose message to avoid confusing output. Fixes: #7347 --- video/out/hwdec/hwdec_vaapi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/video/out/hwdec/hwdec_vaapi.c b/video/out/hwdec/hwdec_vaapi.c index 62c66e5b29..57251d5292 100644 --- a/video/out/hwdec/hwdec_vaapi.c +++ b/video/out/hwdec/hwdec_vaapi.c @@ -362,8 +362,11 @@ static void determine_working_formats(struct ra_hwdec *hw) int num_ep = 0; status = vaQueryConfigEntrypoints(p->display, profile, entrypoints, &num_ep); - if (!CHECK_VA_STATUS(hw, "vaQueryConfigEntrypoints()")) + if (status != VA_STATUS_SUCCESS) { + MP_VERBOSE(hw, "vaQueryConfigEntrypoints(): '%s' for profile %d", + vaErrorStr(status), (int)profile); continue; + } for (int ep = 0; ep < num_ep; ep++) { VAConfigID config = VA_INVALID_ID; status = vaCreateConfig(p->display, profile, entrypoints[ep], -- cgit v1.2.3