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

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2604>
This commit is contained in:
He Junyan 2022-06-09 20:00:35 +08:00 committed by Tim-Philipp Müller
parent 94069a7414
commit 4076295134

View file

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