gst: unref the two cotnroller types in _deinit()
[platform/upstream/gstreamer.git] / plugins / indexers / gstindexers.c
index e2f491e..f317c32 100644 (file)
 #include <gst/gstversion.h>
 #include <gst/gstplugin.h>
 
-extern gboolean gst_mem_index_plugin_init      (GModule *module, GstPlugin *plugin);
-extern gboolean gst_file_index_plugin_init     (GModule *module, GstPlugin *plugin);
+#include "gstindexers.h"
 
 static gboolean
-plugin_init (GModule *module, GstPlugin *plugin)
+plugin_init (GstPlugin * plugin)
 {
   gboolean res = TRUE;
 
-  res &= gst_mem_index_plugin_init (module, plugin);
-  res &= gst_file_index_plugin_init (module, plugin);
-  
+  res &= gst_mem_index_plugin_init (plugin);
+
+  /* FIXME 0.11: fix or remove GstFileIndex, which used mmap and libxml */
+  /* res &= gst_file_index_plugin_init (plugin); */
+
   return res;
 }
 
-GstPluginDesc plugin_desc = {
-  GST_VERSION_MAJOR,
-  GST_VERSION_MINOR,
-  "gstindexers",
-  plugin_init
-};
-
+GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
+    GST_VERSION_MINOR,
+    "coreindexers",
+    "GStreamer core indexers",
+    plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);