mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Use gst_object_ref_sink instead of g_object_ref_sink when appropriate
Making refcount issue debugging simpler
This commit is contained in:
parent
0767f08c7a
commit
5a5b07297c
4 changed files with 4 additions and 4 deletions
|
@ -115,7 +115,7 @@ ges_project_add_formatter (GESProject * project, GESFormatter * formatter)
|
|||
ges_formatter_set_project (formatter, project);
|
||||
priv->formatters = g_list_append (priv->formatters, formatter);
|
||||
|
||||
g_object_ref_sink (formatter);
|
||||
gst_object_ref_sink (formatter);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -526,7 +526,7 @@ ges_timeline_layer_add_clip (GESTimelineLayer * layer, GESClip * clip)
|
|||
}
|
||||
|
||||
|
||||
g_object_ref_sink (clip);
|
||||
gst_object_ref_sink (clip);
|
||||
|
||||
/* Take a reference to the clip and store it stored by start/priority */
|
||||
priv->clips_start = g_list_insert_sorted (priv->clips_start, clip,
|
||||
|
|
|
@ -2329,7 +2329,7 @@ ges_timeline_add_layer (GESTimeline * timeline, GESTimelineLayer * layer)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
g_object_ref_sink (layer);
|
||||
gst_object_ref_sink (layer);
|
||||
timeline->layers = g_list_insert_sorted (timeline->layers, layer,
|
||||
(GCompareFunc) sort_layers);
|
||||
|
||||
|
|
|
@ -746,7 +746,7 @@ ges_track_add_element (GESTrack * track, GESTrackElement * object)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
g_object_ref_sink (object);
|
||||
gst_object_ref_sink (object);
|
||||
g_hash_table_insert (track->priv->trackelements_iter, object,
|
||||
g_sequence_insert_sorted (track->priv->trackelements_by_start, object,
|
||||
(GCompareDataFunc) element_start_compare, NULL));
|
||||
|
|
Loading…
Reference in a new issue