]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/blobdiff - plugins/indexers/gstindexers.c
DEBIAN: Debianization
[glsdk/gstreamer0-10.git] / plugins / indexers / gstindexers.c
index e2f491e9012d192e1c5f7768e40de2b60358ba8b..9513f674139d5df8b83ab609ad0c9e4323f79fcb 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);
+#if defined(HAVE_MMAP) && !defined(GST_DISABLE_LOADSAVE)
+  res &= gst_file_index_plugin_init (plugin);
+#endif
+
   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);