mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
container: fix child duration callback
Previously, we were setting the inpoint_offset using the start offset in the duration callback! Also added a notify for when the duration is changed in the child start callback.
This commit is contained in:
parent
11d93367a9
commit
7afa704054
1 changed files with 2 additions and 1 deletions
|
@ -567,6 +567,7 @@ _child_start_changed_cb (GESTimelineElement * child,
|
|||
GES_ARGS (container));
|
||||
|
||||
g_object_notify (G_OBJECT (container), "start");
|
||||
g_object_notify (G_OBJECT (container), "duration");
|
||||
}
|
||||
|
||||
/* Falltrough! */
|
||||
|
@ -652,7 +653,7 @@ _child_duration_changed_cb (GESTimelineElement * child,
|
|||
}
|
||||
/* Falltrough */
|
||||
case GES_CHILDREN_UPDATE_OFFSETS:
|
||||
map->inpoint_offset = _START (container) - _START (child);
|
||||
map->duration_offset = _DURATION (container) - _DURATION (child);
|
||||
break;
|
||||
case GES_CHILDREN_UPDATE:
|
||||
/* We update all the children calling our set_duration method */
|
||||
|
|
Loading…
Reference in a new issue