mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
GESTimelineObject: Move property setting to an earlier stage.
This ensures that any properties set on the TimelineObject will be propagated to the created TrackObjects just after they're created
This commit is contained in:
parent
e0f61dcd80
commit
852eca115e
1 changed files with 6 additions and 10 deletions
|
@ -196,6 +196,12 @@ ges_timeline_object_create_track_object (GESTimelineObject * object,
|
||||||
object->trackobjects =
|
object->trackobjects =
|
||||||
g_list_append (object->trackobjects, g_object_ref (res));
|
g_list_append (object->trackobjects, g_object_ref (res));
|
||||||
|
|
||||||
|
GST_DEBUG ("Setting properties on newly created TrackObject");
|
||||||
|
|
||||||
|
ges_track_object_set_start_internal (res, object->start);
|
||||||
|
ges_track_object_set_priority_internal (res, object->priority);
|
||||||
|
ges_track_object_set_duration_internal (res, object->duration);
|
||||||
|
ges_track_object_set_inpoint_internal (res, object->inpoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG ("Returning res:%p", res);
|
GST_DEBUG ("Returning res:%p", res);
|
||||||
|
@ -260,16 +266,6 @@ ges_timeline_object_fill_track_object (GESTimelineObject * object,
|
||||||
res = class->fill_track_object (object, trackobj, gnlobj);
|
res = class->fill_track_object (object, trackobj, gnlobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_LIKELY (res)) {
|
|
||||||
GST_DEBUG ("Setting properties");
|
|
||||||
|
|
||||||
ges_track_object_set_start_internal (trackobj, object->start);
|
|
||||||
ges_track_object_set_priority_internal (trackobj, object->priority);
|
|
||||||
ges_track_object_set_duration_internal (trackobj, object->duration);
|
|
||||||
ges_track_object_set_inpoint_internal (trackobj, object->inpoint);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
GST_DEBUG ("Returning res:%d", res);
|
GST_DEBUG ("Returning res:%d", res);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in a new issue