gst/gstinfo.c: g_hash_table_insert() needs a cast to a non-const pointer duh.
authorDavid Schleef <ds@schleef.org>
Thu, 26 Oct 2006 00:00:34 +0000 (00:00 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 26 Oct 2006 00:00:34 +0000 (00:00 +0000)
Original commit message from CVS:
* gst/gstinfo.c:
g_hash_table_insert() needs a cast to a non-const pointer duh.

ChangeLog
gst/gstinfo.c

index 75e2b32..eeb2f99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2006-10-25  David Schleef  <ds@schleef.org>
 
        * gst/gstinfo.c:
+         g_hash_table_insert() needs a cast to a non-const pointer duh.
+
+2006-10-25  David Schleef  <ds@schleef.org>
+
+       * gst/gstinfo.c:
        * gst/gstinfo.h:
          Change name parameter of _gst_debug_register_funcptr to const
          to reflect the constness of its use in the function as well
index b08413d..bf9811b 100644 (file)
@@ -1258,7 +1258,7 @@ _gst_debug_register_funcptr (GstDebugFuncPtr func, const gchar * ptrname)
   if (!__gst_function_pointers)
     __gst_function_pointers = g_hash_table_new (g_direct_hash, g_direct_equal);
   if (!g_hash_table_lookup (__gst_function_pointers, ptr))
-    g_hash_table_insert (__gst_function_pointers, ptr, ptrname);
+    g_hash_table_insert (__gst_function_pointers, ptr, (gpointer) ptrname);
 
   g_static_mutex_unlock (&__dbg_functions_mutex);
 }