group: Use proper group constructor

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>
This commit is contained in:
Thibault Saunier 2021-03-08 09:56:49 -03:00
parent 22528c4d96
commit cebdfad9fe

View file

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