timeline: return sunk element on pasting

Technically, an element can still be floating on the return from
`->paste` (e.g. a clip not in a layer). Since the return of the `_paste`
methods are (return full) a non-floating object is probably expected in
all cases.
This commit is contained in:
Henry Wilkes 2020-04-06 12:17:43 +01:00
parent 067304a05f
commit fe854bba69
2 changed files with 2 additions and 2 deletions

View file

@ -2377,7 +2377,7 @@ ges_timeline_element_paste (GESTimelineElement * self,
g_clear_object (&self->priv->copied_from);
return res ? g_object_ref (res) : res;
return res ? g_object_ref_sink (res) : res;
}
/**

View file

@ -3035,7 +3035,7 @@ ges_timeline_paste_element (GESTimeline * timeline,
gst_object_unref (copied_from);
return res ? g_object_ref (res) : res;
return res ? g_object_ref_sink (res) : res;
}
/**