mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
gst/gstutils.h: Intern the type name string, similar to what G_DEFINE_TYPE does.
Original commit message from CVS: * gst/gstutils.h: Intern the type name string, similar to what G_DEFINE_TYPE does.
This commit is contained in:
parent
4cfe6ec1b9
commit
416a8725f4
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-05-08 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* gst/gstutils.h:
|
||||
Intern the type name string, similar to what G_DEFINE_TYPE does.
|
||||
|
||||
2008-05-08 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* gst/gstutils.h:
|
||||
|
|
|
@ -140,7 +140,8 @@ type_as_function ## _get_type (void) \
|
|||
static volatile GType object_type = 0; \
|
||||
if (__gst_once_init_enter ((gsize *) &object_type)) { \
|
||||
GType _type; \
|
||||
_type = gst_type_register_static_full (parent_type_macro, #type, \
|
||||
_type = gst_type_register_static_full (parent_type_macro, \
|
||||
g_intern_static_string (#type), \
|
||||
sizeof (type ## Class), \
|
||||
type_as_function ## _base_init, \
|
||||
NULL, /* base_finalize */ \
|
||||
|
|
Loading…
Reference in a new issue