The documentation states that it returns a (transfer full) list
of GESClip but it was returning a (transfer container) list. Make
sure to actually make it (transfer full).
https://bugzilla.gnome.org/show_bug.cgi?id=793874
if (clip_intersects)
intersecting_clips =
- g_list_insert_sorted (intersecting_clips, tmp->data,
- (GCompareFunc) element_start_compare);
+ g_list_insert_sorted (intersecting_clips,
+ gst_object_ref (tmp->data), (GCompareFunc) element_start_compare);
}
return intersecting_clips;
}