vaapi: Do not disable the whole vpp when some va operations not available.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2578>
This commit is contained in:
He Junyan 2022-06-09 20:00:35 +08:00 committed by GStreamer Marge Bot
parent 0a2c490723
commit e72c867bf8

View file

@ -788,10 +788,12 @@ get_operations_ordered (GstVaapiFilter * filter, GPtrArray * default_ops)
filter_caps = vpp_get_filter_caps (filter, va_type,
op_data->va_cap_size, &num_filter_caps);
if (!filter_caps)
goto error;
continue;
}
if (!op_data_ensure_caps (op_data, filter_caps, num_filter_caps))
goto error;
continue;
g_ptr_array_add (ops, op_data_ref (op_data));
}
free (filter_caps);