diff --git a/ges/ges-project.c b/ges/ges-project.c index c6fd7934e0..47ce90ddde 100644 --- a/ges/ges-project.c +++ b/ges/ges-project.c @@ -234,7 +234,7 @@ _uri_missing_accumulator (GSignalInvocationHint * ihint, GValue * return_accu, static GESExtractable * ges_project_extract (GESAsset * project, GError ** error) { - GESTimeline *timeline = ges_timeline_new (); + GESTimeline *timeline = g_object_new (GES_TYPE_TIMELINE, NULL); ges_extractable_set_asset (GES_EXTRACTABLE (timeline), GES_ASSET (project)); if (_load_project (GES_PROJECT (project), timeline, error)) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 121eac9eca..73964b1335 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -2374,7 +2374,13 @@ pad_removed_cb (GESTrack * track, GstPad * pad, TrackPrivate * tr_priv) GESTimeline * ges_timeline_new (void) { - return g_object_new (GES_TYPE_TIMELINE, NULL); + GESProject *project = ges_project_new (NULL); + GESExtractable *timeline = g_object_new (GES_TYPE_TIMELINE, NULL); + + ges_extractable_set_asset (timeline, GES_ASSET (project)); + gst_object_unref (project); + + return GES_TIMELINE (timeline); } /**