{
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))
return GES_EXTRACTABLE (timeline);
static void
layer_object_added_cb (GESLayer * layer, GESClip * clip, GESTimeline * timeline)
{
+ GESProject *project;
+
/* We make sure not to be connected twice */
g_signal_handlers_disconnect_by_func (clip, clip_track_element_added_cb,
timeline);
return;
}
+
add_object_to_tracks (timeline, clip, NULL);
+
+ GST_DEBUG ("Making sure that the asset is in our project");
+ project =
+ GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE (timeline)));
+ ges_project_add_asset (project,
+ ges_extractable_get_asset (GES_EXTRACTABLE (clip)));
+
GST_DEBUG ("Done");
}