mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
pbutils: Do not restrict number of similar profiles in a container
We have the notion of presence, and when the user want to be in control it is totally legitimate for him to have several occurrences of a similar profile Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/746>
This commit is contained in:
parent
dcc7242ba5
commit
9412e61150
1 changed files with 0 additions and 7 deletions
|
@ -1085,13 +1085,6 @@ gst_encoding_container_profile_add_profile (GstEncodingContainerProfile *
|
||||||
g_return_val_if_fail (GST_IS_ENCODING_CONTAINER_PROFILE (container), FALSE);
|
g_return_val_if_fail (GST_IS_ENCODING_CONTAINER_PROFILE (container), FALSE);
|
||||||
g_return_val_if_fail (GST_IS_ENCODING_PROFILE (profile), FALSE);
|
g_return_val_if_fail (GST_IS_ENCODING_PROFILE (profile), FALSE);
|
||||||
|
|
||||||
if (g_list_find_custom (container->encodingprofiles, profile,
|
|
||||||
(GCompareFunc) _compare_encoding_profiles)) {
|
|
||||||
GST_ERROR
|
|
||||||
("Encoding profile already contains an identical GstEncodingProfile");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
container->encodingprofiles =
|
container->encodingprofiles =
|
||||||
g_list_append (container->encodingprofiles, profile);
|
g_list_append (container->encodingprofiles, profile);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue