From 7afa7040547e21219709153877681e6debdd821c Mon Sep 17 00:00:00 2001 From: Henry Wilkes Date: Mon, 24 Feb 2020 20:19:12 +0000 Subject: [PATCH] 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. --- ges/ges-container.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ges/ges-container.c b/ges/ges-container.c index 1ddb6f482b..cee3a11533 100644 --- a/ges/ges-container.c +++ b/ges/ges-container.c @@ -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 */