From bad1b419c201f121b5914a00abd974c45e78c003 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 4 Feb 2011 11:26:11 +0100 Subject: [PATCH] GESTimelineObject: Do not rely on the fact that the trackobject list is sorted --- ges/ges-timeline-object.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ges/ges-timeline-object.c b/ges/ges-timeline-object.c index 00044f5..15ab7e7 100644 --- a/ges/ges-timeline-object.c +++ b/ges/ges-timeline-object.c @@ -813,12 +813,10 @@ GList * ges_timeline_object_get_effects (GESTimelineObject * object) { GList *tmp, *ret; - guint i; ret = NULL; - for (tmp = object->priv->trackobjects, i = 0; - i < object->priv->nb_effects; tmp = tmp->next, i++) { + for (tmp = object->priv->trackobjects; tmp; tmp = tmp->next) { if (GES_IS_TRACK_EFFECT (tmp->data)) { ret = g_list_insert_sorted_with_data (ret, tmp->data, (GCompareDataFunc) sort_track_effects, object); -- 2.7.4