pbutils: Do not restrict number of similar profiles in a container
authorThibault Saunier <tsaunier@igalia.com>
Thu, 9 Jul 2020 15:05:35 +0000 (11:05 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 9 Jul 2020 21:59:54 +0000 (21:59 +0000)
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>

gst-libs/gst/pbutils/encoding-profile.c

index 43d31f7..d8a33ad 100644 (file)
@@ -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_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 =
       g_list_append (container->encodingprofiles, profile);