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
This commit is contained in:
wm4 committed 2020-01-11 16:35:30 +01:00
1 parent cfceaec266
commit f23dcfef82
1 file changed
+4 -1
+4 -1
View File
@@ -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],