X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstregistry.c;h=32153ff87d2f9910fe6a19825f187a80f78f4c33;hb=2db8e3705fba5baf51c33baaeb16dd285c992fae;hp=bada33e01be8fbb1b49faaf63efef2d899cb0e55;hpb=eeb30c2a9775798c5327ee8fd532ea7f76d1f520;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstregistry.c b/gst/gstregistry.c index bada33e..32153ff 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -196,7 +196,7 @@ static GstPlugin *gst_registry_lookup_bn_locked (GstRegistry * registry, const char *basename); #define gst_registry_parent_class parent_class -G_DEFINE_TYPE (GstRegistry, gst_registry, GST_TYPE_OBJECT); +G_DEFINE_TYPE_WITH_PRIVATE (GstRegistry, gst_registry, GST_TYPE_OBJECT); static void gst_registry_class_init (GstRegistryClass * klass) @@ -205,8 +205,6 @@ gst_registry_class_init (GstRegistryClass * klass) gobject_class = (GObjectClass *) klass; - g_type_class_add_private (klass, sizeof (GstRegistryPrivate)); - /** * GstRegistry::plugin-added: * @registry: the registry that emitted the signal @@ -239,9 +237,7 @@ gst_registry_class_init (GstRegistryClass * klass) static void gst_registry_init (GstRegistry * registry) { - registry->priv = - G_TYPE_INSTANCE_GET_PRIVATE (registry, GST_TYPE_REGISTRY, - GstRegistryPrivate); + registry->priv = gst_registry_get_instance_private (registry); registry->priv->feature_hash = g_hash_table_new (g_str_hash, g_str_equal); registry->priv->basename_hash = g_hash_table_new (g_str_hash, g_str_equal); }