encoding-profile: Plug a leak of factory list

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1002>
This commit is contained in:
Thibault Saunier 2021-01-08 08:39:32 -03:00 committed by GStreamer Merge Bot
parent a8fca8d040
commit e1a8393ba7

View file

@ -1758,6 +1758,9 @@ create_encoding_profile_from_caps (GstCaps * caps, gchar * preset_name,
GST_ENCODING_PROFILE (gst_encoding_container_profile_new
("User profile", "User profile", caps, NULL));
if (factories)
gst_plugin_feature_list_free (factories);
done:
if (factory_name && profile)
gst_encoding_profile_set_preset_name (profile, factory_name);