diff options
author | Harish Fulara <harish14143@iiitd.ac.in> | 2018-02-27 15:26:29 +0530 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2018-02-27 09:56:43 -0300 |
commit | 503300a0dfa49cd8ce826ed93de940436ab96074 (patch) | |
tree | 8b09bff1dfba7b6c90e6048a6d9a8521638321bc | |
parent | 6e018d7b2d3a7fd77729261e2b3b7eb389db3911 (diff) |
ges: Fix ges_layer_get_clips_in_interval(start, end) refcount handling
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
-rw-r--r-- | ges/ges-layer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ges/ges-layer.c b/ges/ges-layer.c index 9863ce68..7809065e 100644 --- a/ges/ges-layer.c +++ b/ges/ges-layer.c @@ -777,8 +777,8 @@ ges_layer_get_clips_in_interval (GESLayer * layer, GstClockTime start, 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; } |