Use gst_object_ref_sink instead of g_object_ref_sink when appropriate

Making refcount issue debugging simpler
This commit is contained in:
Thibault Saunier 2013-03-18 09:49:18 -03:00
parent 0767f08c7a
commit 5a5b07297c
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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,

View file

@ -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);

View file

@ -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));