mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
msdk: Add NumFilters check for VPP description
When NumFilters is equal to 0, the function should return immediately. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4466>
This commit is contained in:
parent
ca125bd304
commit
e97b5ad355
1 changed files with 4 additions and 1 deletions
|
@ -1365,8 +1365,11 @@ gst_msdkcaps_vpp_create_caps (GstMsdkContext * context,
|
|||
g_return_val_if_fail (context, FALSE);
|
||||
g_return_val_if_fail (vpp_description, FALSE);
|
||||
|
||||
session = gst_msdk_context_get_session (context);
|
||||
vpp_desc = (mfxVPPDescription *) vpp_description;
|
||||
if (vpp_desc->NumFilters == 0)
|
||||
return FALSE;
|
||||
|
||||
session = gst_msdk_context_get_session (context);
|
||||
|
||||
g_value_init (&supported_in_fmts, GST_TYPE_LIST);
|
||||
g_value_init (&supported_out_fmts, GST_TYPE_LIST);
|
||||
|
|
Loading…
Reference in a new issue