GESTimelineObject: Do not rely on the fact that the trackobject list is sorted

This commit is contained in:
Thibault Saunier 2011-02-04 11:26:11 +01:00 committed by Edward Hervey
parent 1a7081ade3
commit bad1b419c2

View file

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