2004-08-03 Benjamin Otte <otte@gnome.org>
+ * gst/gst.c: (gst_register_core_elements):
+ fix for G_DISABLE_ASSERT
+ * gst/gstinfo.c: (__gst_in_valgrind):
+ add for GST_DISABLE_DEBUG
+
+2004-08-03 Benjamin Otte <otte@gnome.org>
+
* gst/parse/parse.l:
fix for G_DISABLE_ASSERT
gst_register_core_elements (GstPlugin * plugin)
{
/* register some standard builtin types */
- g_assert (gst_element_register (plugin, "bin", GST_RANK_PRIMARY,
- GST_TYPE_BIN));
- g_assert (gst_element_register (plugin, "pipeline", GST_RANK_PRIMARY,
- GST_TYPE_PIPELINE));
- g_assert (gst_element_register (plugin, "thread", GST_RANK_PRIMARY,
- GST_TYPE_THREAD));
- g_assert (gst_element_register (plugin, "queue", GST_RANK_PRIMARY,
- GST_TYPE_QUEUE));
+ if (!gst_element_register (plugin, "bin", GST_RANK_PRIMARY,
+ GST_TYPE_BIN) ||
+ !gst_element_register (plugin, "pipeline", GST_RANK_PRIMARY,
+ GST_TYPE_PIPELINE) ||
+ !gst_element_register (plugin, "thread", GST_RANK_PRIMARY,
+ GST_TYPE_THREAD) ||
+ !gst_element_register (plugin, "queue", GST_RANK_PRIMARY, GST_TYPE_QUEUE))
+ g_assert_not_reached ();
return TRUE;
}
}
#endif /* HAVE_PRINTF_EXTENSION */
+#else /* !GST_DISABLE_GST_DEBUG */
+
+gboolean
+__gst_in_valgrind (void)
+{
+ return FALSE;
+}
+
#endif /* GST_DISABLE_GST_DEBUG */
+
#ifdef GST_ENABLE_FUNC_INSTRUMENTATION
/* FIXME make this thread specific */
static GSList *stack_trace = NULL;