mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
ges: Reimplement 'always create a project to back a timeline'
Keeping it simple, and making sure everything is synchronous
This commit is contained in:
parent
6e9e9338ae
commit
289b04f170
2 changed files with 8 additions and 2 deletions
|
@ -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))
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue