group: Use proper group constructor
authorThibault Saunier <tsaunier@igalia.com>
Mon, 8 Mar 2021 12:56:49 +0000 (09:56 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 8 Mar 2021 12:58:50 +0000 (09:58 -0300)
Otherwise we might en up having a group which is not backed by any asset
leading to possible assertion as this should never happen (see
https://gitlab.gnome.org/GNOME/pitivi/-/issues/2526)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/232>

ges/ges-group.c

index 482be30..0685170 100644 (file)
@@ -457,7 +457,7 @@ _group (GList * containers)
 {
   GList *tmp;
   GESTimeline *timeline = NULL;
-  GESContainer *ret = g_object_new (GES_TYPE_GROUP, NULL);
+  GESContainer *ret = GES_CONTAINER (ges_group_new ());
 
   if (!containers)
     return ret;