gst/gstinfo.c: g_hash_table_insert() needs a cast to a non-const pointer duh.

Original commit message from CVS:
* gst/gstinfo.c:
g_hash_table_insert() needs a cast to a non-const pointer duh.
This commit is contained in:
David Schleef 2006-10-26 00:00:34 +00:00
parent 504274019d
commit bc18910072
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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:

View 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);
}