mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
timelineobject: Set TrackObject's TimelineObject only when calling the add function
ges_timeline_object_add_track_object actually calls ges_track_object_set_timeline_object so do not do it once more ourself. Especially since it results in having a TrackObject.timeline_object refering to a TimelineObject it is not actually in yet.
This commit is contained in:
parent
6447a50001
commit
148e7ef411
1 changed files with 2 additions and 1 deletions
|
@ -470,9 +470,10 @@ ges_timeline_object_create_track_objects_func (GESTimelineObject * object,
|
|||
GST_DEBUG ("Did not create track object");
|
||||
return FALSE;
|
||||
}
|
||||
ges_track_object_set_timeline_object (result, object);
|
||||
|
||||
ret = ges_track_add_object (track, result);
|
||||
ges_timeline_object_add_track_object (object, result);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue