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:
Thibault Saunier 2012-01-30 17:47:42 +01:00
parent 6447a50001
commit 148e7ef411

View file

@ -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;
}