diff --git a/configure.ac b/configure.ac index ce017d14d5..61632c2a47 100644 --- a/configure.ac +++ b/configure.ac @@ -458,6 +458,8 @@ dnl # Make the output files # dnl ######################### dnl libs/ext/Makefile +dnl nothing there yet ! +dnl testsuite/indexers/Makefile AC_OUTPUT( Makefile include/Makefile @@ -486,7 +488,6 @@ tests/sched/Makefile tests/threadstate/Makefile testsuite/Makefile testsuite/bytestream/Makefile -testsuite/indexers/Makefile testsuite/caps/Makefile testsuite/cleanup/Makefile testsuite/clock/Makefile diff --git a/gst/gstinfo.c b/gst/gstinfo.c index fb93646314..8bbd91740e 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -563,3 +563,14 @@ gst_debug_print_stack_trace (void) } #endif /* GST_ENABLE_FUNC_INTSTRUMENTATION */ + +inline void * +_gst_debug_register_funcptr (void *ptr, 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); + return ptr; +} + diff --git a/gst/gstinfo.h b/gst/gstinfo.h index 957d107a3b..8780167d68 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -352,6 +352,8 @@ void gst_default_info_handler (gint category,gboolean incore, gint line,const gchar *debug_string, void *element,gchar *string); +inline void * _gst_debug_register_funcptr (void *ptr, gchar *ptrname); + extern GstInfoHandler _gst_info_handler; extern guint32 _gst_info_categories; @@ -462,28 +464,16 @@ extern GstErrorHandler _gst_error_handler; /********** function pointer stuff **********/ extern GHashTable *__gst_function_pointers; - #if GST_DEBUG_ENABLED #define GST_DEBUG_FUNCPTR(ptr) _gst_debug_register_funcptr((void *)(ptr), #ptr) #define GST_DEBUG_FUNCPTR_NAME(ptr) _gst_debug_nameof_funcptr((void *)ptr) #else #define GST_DEBUG_FUNCPTR(ptr) (ptr) #define GST_DEBUG_FUNCPTR_NAME(ptr) "" -#endif - -static inline void * -_gst_debug_register_funcptr (void *ptr, 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); - return ptr; -} +#endif /* GST_DEBUG_ENABLED */ gchar *_gst_debug_nameof_funcptr (void *ptr); void gst_debug_print_stack_trace (void); - - #endif /* __GSTINFO_H__ */