mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
a8fca8d040
commit
e1a8393ba7
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue