Keeping it simple, and making sure everything is synchronous
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))
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);
}
/**