mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
067304a05f
commit
fe854bba69
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue