From 67101abdd69f40043548a401b33a9f1d4127f95b Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Sat, 23 Feb 2008 12:10:16 +0000 Subject: gst/goom/: Call oil_init(), otherwise oil_get_cpu_flags() won't return anything useful. Export goom debug category so... Original commit message from CVS: * gst/goom/gstgoom.c: (goom_debug), (plugin_init): * gst/goom/plugin_info.c: (goom_debug), (GST_CAT_DEFAULT), (setOptimizedMethods): Call oil_init(), otherwise oil_get_cpu_flags() won't return anything useful. Export goom debug category so we can get rid of the VERBOSE define and the printfs. --- gst/goom/gstgoom.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gst/goom/gstgoom.c') diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c index 7ba6654a..3ccaf7d1 100644 --- a/gst/goom/gstgoom.c +++ b/gst/goom/gstgoom.c @@ -46,7 +46,9 @@ #include #include "goom.h" -GST_DEBUG_CATEGORY_STATIC (goom_debug); +#include + +GST_DEBUG_CATEGORY (goom_debug); #define GST_CAT_DEFAULT goom_debug /* elementfactory information */ @@ -153,8 +155,6 @@ gst_goom_class_init (GstGoomClass * klass) gobject_class->finalize = gst_goom_finalize; gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_goom_change_state); - - GST_DEBUG_CATEGORY_INIT (goom_debug, "goom", 0, "goom visualisation element"); } static void @@ -593,6 +593,10 @@ gst_goom_change_state (GstElement * element, GstStateChange transition) static gboolean plugin_init (GstPlugin * plugin) { + GST_DEBUG_CATEGORY_INIT (goom_debug, "goom", 0, "goom visualisation element"); + + oil_init (); + return gst_element_register (plugin, "goom", GST_RANK_NONE, GST_TYPE_GOOM); } -- cgit