ges: Reimplement 'always create a project to back a timeline'

Keeping it simple, and making sure everything is synchronous
This commit is contained in:
Thibault Saunier 2013-11-28 15:13:06 -03:00
parent 6e9e9338ae
commit 289b04f170
2 changed files with 8 additions and 2 deletions

View file

@ -234,7 +234,7 @@ _uri_missing_accumulator (GSignalInvocationHint * ihint, GValue * return_accu,
static GESExtractable * static GESExtractable *
ges_project_extract (GESAsset * project, GError ** error) 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)); ges_extractable_set_asset (GES_EXTRACTABLE (timeline), GES_ASSET (project));
if (_load_project (GES_PROJECT (project), timeline, error)) if (_load_project (GES_PROJECT (project), timeline, error))

View file

@ -2374,7 +2374,13 @@ pad_removed_cb (GESTrack * track, GstPad * pad, TrackPrivate * tr_priv)
GESTimeline * GESTimeline *
ges_timeline_new (void) 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);
} }
/** /**