gst/gstutils.h: Intern the type name string, similar to what G_DEFINE_TYPE does.
authorSebastian Dröge <slomo@circular-chaos.org>
Thu, 8 May 2008 11:37:03 +0000 (11:37 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Thu, 8 May 2008 11:37:03 +0000 (11:37 +0000)
Original commit message from CVS:
* gst/gstutils.h:
Intern the type name string, similar to what G_DEFINE_TYPE does.

ChangeLog
gst/gstutils.h

index 28280d2..fa328bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 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:
        Make GST_BOILERPLATE thread-safe if building with GLib 2.14 or newer.
 
 2008-05-08  Sebastian Dröge  <slomo@circular-chaos.org>
index a2f2ece..23c4bcd 100644 (file)
@@ -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 */                           \