Use gst_object_ref_sink instead of g_object_ref_sink when appropriate
authorThibault Saunier <thibault.saunier@collabora.com>
Mon, 18 Mar 2013 12:49:18 +0000 (09:49 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Mon, 18 Mar 2013 15:48:42 +0000 (12:48 -0300)
Making refcount issue debugging simpler

ges/ges-project.c
ges/ges-timeline-layer.c
ges/ges-timeline.c
ges/ges-track.c

index 7af3e9186fc954ba7e2500587fb88e63873f412f..f6ced090a59a762868c6f73b16b4d5cf7e7a423e 100644 (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
index 0d3635ff12f8aa4625f73e4ad0fe9c4c66d9f27e..ed4a8a4af3054e73e664b2b471e5dcc191dc3d7e 100644 (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,
index b51a3023ca457e0523d9b6d4dcd26b4bcc39ce33..bd009340e8543e9c0cac08be70da5c589b6d63f4 100644 (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);
 
index 9e360f17f1364630840441c5e9dd55fd6d1e036d..100638765ebe75d81ac2066e0ca1c8f3fc0e2825 100644 (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));