* owned by the creator of the object
*/
if (GST_OBJECT_IS_FLOATING (templ)) {
- gst_object_ref (templ);
- gst_object_sink (templ);
+ gst_object_ref_sink (templ);
}
}
g_static_mutex_lock (&_gst_registry_mutex);
if (G_UNLIKELY (!_gst_registry_default)) {
_gst_registry_default = g_object_new (GST_TYPE_REGISTRY, NULL);
- gst_object_ref (GST_OBJECT_CAST (_gst_registry_default));
- gst_object_sink (GST_OBJECT_CAST (_gst_registry_default));
+ gst_object_ref_sink (GST_OBJECT_CAST (_gst_registry_default));
}
registry = _gst_registry_default;
g_static_mutex_unlock (&_gst_registry_mutex);
registry->plugins = g_list_prepend (registry->plugins, plugin);
- gst_object_ref (plugin);
- gst_object_sink (plugin);
+ gst_object_ref_sink (plugin);
GST_OBJECT_UNLOCK (registry);
GST_LOG_OBJECT (registry, "emitting plugin-added for filename \"%s\"",
gst_object_unref (existing_feature);
}
- gst_object_ref (feature);
- gst_object_sink (feature);
+ gst_object_ref_sink (feature);
GST_OBJECT_UNLOCK (registry);
GST_LOG_OBJECT (registry, "emitting feature-added for %s", feature->name);
/* we created the global clock; take ownership so
* we can hand out instances later */
- gst_object_ref (clock);
- gst_object_sink (GST_OBJECT (clock));
+ gst_object_ref_sink (clock);
_the_system_clock = clock;
g_static_mutex_unlock (&_gst_sysclock_mutex);