encoding-profile: Also take into account preset name when comparing profiles
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Wed, 21 Dec 2016 22:32:41 +0000 (19:32 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 23 Dec 2016 20:40:23 +0000 (17:40 -0300)
gst-libs/gst/pbutils/encoding-profile.c

index 2df7589..6eeb0b6 100644 (file)
@@ -954,6 +954,7 @@ _compare_encoding_profiles (const GstEncodingProfile * a,
   if ((G_TYPE_FROM_INSTANCE (a) != G_TYPE_FROM_INSTANCE (b)) ||
       !_gst_caps_is_equal_safe (a->format, b->format) ||
       (g_strcmp0 (a->preset, b->preset) != 0) ||
+      (g_strcmp0 (a->preset_name, b->preset_name) != 0) ||
       (g_strcmp0 (a->name, b->name) != 0) ||
       (g_strcmp0 (a->description, b->description) != 0))
     return -1;