mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
elementfactory: don't export private _gst_elementclass_factory quark
This commit is contained in:
parent
ac40ab45b3
commit
534e077c18
3 changed files with 6 additions and 7 deletions
|
@ -141,7 +141,7 @@ static GstObjectClass *parent_class = NULL;
|
||||||
static guint gst_element_signals[LAST_SIGNAL] = { 0 };
|
static guint gst_element_signals[LAST_SIGNAL] = { 0 };
|
||||||
|
|
||||||
/* this is used in gstelementfactory.c:gst_element_register() */
|
/* this is used in gstelementfactory.c:gst_element_register() */
|
||||||
GQuark _gst_elementclass_factory = 0;
|
GQuark __gst_elementclass_factory = 0;
|
||||||
|
|
||||||
GType
|
GType
|
||||||
gst_element_get_type (void)
|
gst_element_get_type (void)
|
||||||
|
@ -166,7 +166,7 @@ gst_element_get_type (void)
|
||||||
_type = g_type_register_static (GST_TYPE_OBJECT, "GstElement",
|
_type = g_type_register_static (GST_TYPE_OBJECT, "GstElement",
|
||||||
&element_info, G_TYPE_FLAG_ABSTRACT);
|
&element_info, G_TYPE_FLAG_ABSTRACT);
|
||||||
|
|
||||||
_gst_elementclass_factory =
|
__gst_elementclass_factory =
|
||||||
g_quark_from_static_string ("GST_ELEMENTCLASS_FACTORY");
|
g_quark_from_static_string ("GST_ELEMENTCLASS_FACTORY");
|
||||||
g_once_init_leave (&gst_element_type, _type);
|
g_once_init_leave (&gst_element_type, _type);
|
||||||
}
|
}
|
||||||
|
@ -262,7 +262,7 @@ gst_element_base_class_init (gpointer g_class)
|
||||||
/* set the factory, see gst_element_register() */
|
/* set the factory, see gst_element_register() */
|
||||||
element_class->elementfactory =
|
element_class->elementfactory =
|
||||||
g_type_get_qdata (G_TYPE_FROM_CLASS (element_class),
|
g_type_get_qdata (G_TYPE_FROM_CLASS (element_class),
|
||||||
_gst_elementclass_factory);
|
__gst_elementclass_factory);
|
||||||
GST_DEBUG ("type %s : factory %p", G_OBJECT_CLASS_NAME (element_class),
|
GST_DEBUG ("type %s : factory %p", G_OBJECT_CLASS_NAME (element_class),
|
||||||
element_class->elementfactory);
|
element_class->elementfactory);
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ static void gst_element_factory_cleanup (GstElementFactory * factory);
|
||||||
/* static guint gst_element_factory_signals[LAST_SIGNAL] = { 0 }; */
|
/* static guint gst_element_factory_signals[LAST_SIGNAL] = { 0 }; */
|
||||||
|
|
||||||
/* this is defined in gstelement.c */
|
/* this is defined in gstelement.c */
|
||||||
extern GQuark _gst_elementclass_factory;
|
extern GQuark __gst_elementclass_factory;
|
||||||
|
|
||||||
#define _do_init \
|
#define _do_init \
|
||||||
{ \
|
{ \
|
||||||
|
@ -219,7 +219,7 @@ gst_element_register (GstPlugin * plugin, const gchar * name, guint rank,
|
||||||
factory = GST_ELEMENT_FACTORY_CAST (existing_feature);
|
factory = GST_ELEMENT_FACTORY_CAST (existing_feature);
|
||||||
factory->type = type;
|
factory->type = type;
|
||||||
existing_feature->loaded = TRUE;
|
existing_feature->loaded = TRUE;
|
||||||
g_type_set_qdata (type, _gst_elementclass_factory, factory);
|
g_type_set_qdata (type, __gst_elementclass_factory, factory);
|
||||||
gst_object_unref (existing_feature);
|
gst_object_unref (existing_feature);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -232,7 +232,7 @@ gst_element_register (GstPlugin * plugin, const gchar * name, guint rank,
|
||||||
g_type_name (type));
|
g_type_name (type));
|
||||||
|
|
||||||
/* provide info needed during class structure setup */
|
/* provide info needed during class structure setup */
|
||||||
g_type_set_qdata (type, _gst_elementclass_factory, factory);
|
g_type_set_qdata (type, __gst_elementclass_factory, factory);
|
||||||
klass = GST_ELEMENT_CLASS (g_type_class_ref (type));
|
klass = GST_ELEMENT_CLASS (g_type_class_ref (type));
|
||||||
#if 0
|
#if 0
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
|
|
|
@ -45,7 +45,6 @@ EXPORTS
|
||||||
_gst_debug_register_funcptr
|
_gst_debug_register_funcptr
|
||||||
_gst_disable_registry_cache DATA
|
_gst_disable_registry_cache DATA
|
||||||
_gst_element_error_printf
|
_gst_element_error_printf
|
||||||
_gst_elementclass_factory DATA
|
|
||||||
_gst_event_type DATA
|
_gst_event_type DATA
|
||||||
_gst_plugin_loader_client_run
|
_gst_plugin_loader_client_run
|
||||||
_gst_structure_type DATA
|
_gst_structure_type DATA
|
||||||
|
|
Loading…
Reference in a new issue