mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
ges: gst_bin_add() is transfer floating
so wrappers around it are too
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3684>
This commit is contained in:
parent
903289613b
commit
965e6086d0
2 changed files with 4 additions and 2 deletions
|
@ -987,7 +987,7 @@ _unlink_track (GESPipeline * self, GESTrack * track)
|
|||
/**
|
||||
* ges_pipeline_set_timeline:
|
||||
* @pipeline: A #GESPipeline
|
||||
* @timeline: (transfer full): The timeline to set for @pipeline
|
||||
* @timeline: (transfer floating): The timeline to set for @pipeline
|
||||
*
|
||||
* Takes the given timeline and sets it as the #GESPipeline:timeline for
|
||||
* the pipeline.
|
||||
|
|
|
@ -2468,7 +2468,7 @@ ges_timeline_remove_layer (GESTimeline * timeline, GESLayer * layer)
|
|||
/**
|
||||
* ges_timeline_add_track:
|
||||
* @timeline: The #GESTimeline
|
||||
* @track: (transfer full): The track to add
|
||||
* @track: (transfer floating): The track to add
|
||||
*
|
||||
* Add a track to the timeline.
|
||||
*
|
||||
|
@ -2505,6 +2505,8 @@ ges_timeline_add_track (GESTimeline * timeline, GESTrack * track)
|
|||
if (G_UNLIKELY (g_list_find (timeline->tracks, (gconstpointer) track))) {
|
||||
UNLOCK_DYN (timeline);
|
||||
GST_WARNING ("Track is already controlled by this timeline");
|
||||
gst_object_ref_sink (track);
|
||||
gst_object_unref (track);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue