goom: Call orc_init() before trying to get target flags

This commit is contained in:
Sebastian Dröge 2010-06-14 15:36:00 +02:00
parent a11b271bf4
commit ff755250c3

View file

@ -43,6 +43,10 @@
#include <gst/video/video.h> #include <gst/video/video.h>
#include "goom.h" #include "goom.h"
#if HAVE_ORC
#include <orc/orc.h>
#endif
GST_DEBUG_CATEGORY (goom_debug); GST_DEBUG_CATEGORY (goom_debug);
#define GST_CAT_DEFAULT goom_debug #define GST_CAT_DEFAULT goom_debug
@ -585,6 +589,10 @@ plugin_init (GstPlugin * plugin)
{ {
GST_DEBUG_CATEGORY_INIT (goom_debug, "goom", 0, "goom visualisation element"); GST_DEBUG_CATEGORY_INIT (goom_debug, "goom", 0, "goom visualisation element");
#if HAVE_ORC
orc_init ();
#endif
return gst_element_register (plugin, "goom", GST_RANK_NONE, GST_TYPE_GOOM); return gst_element_register (plugin, "goom", GST_RANK_NONE, GST_TYPE_GOOM);
} }