update for meta api change
[platform/upstream/gst-plugins-good.git] / gst / effectv / gsteffectv.c
index c05e151..1615fd7 100644 (file)
 #include "config.h"
 #endif
 
-#include <string.h>
-#include <gst/gst.h>
-#include <gst/video/video.h>
 #include "gsteffectv.h"
-
+#include "gstaging.h"
+#include "gstdice.h"
+#include "gstedge.h"
+#include "gstquark.h"
+#include "gstrev.h"
+#include "gstshagadelic.h"
+#include "gstvertigo.h"
+#include "gstwarp.h"
+#include "gstop.h"
+#include "gstradioac.h"
+#include "gststreak.h"
+#include "gstripple.h"
 
 struct _elements_entry
 {
-  gchar *name;
+  const gchar *name;
     GType (*type) (void);
 };
 
-static struct _elements_entry _elements[] = {
-  {"edgeTV", gst_edgetv_get_type},
-  {"agingTV", gst_agingtv_get_type},
-  {"diceTV", gst_dicetv_get_type},
-  {"warpTV", gst_warptv_get_type},
-  {"shagadelicTV", gst_shagadelictv_get_type},
-  {"vertigoTV", gst_vertigotv_get_type},
-  {"revTV", gst_revtv_get_type},
-  {"quarkTV", gst_quarktv_get_type},
+static const struct _elements_entry _elements[] = {
+  {"edgetv", gst_edgetv_get_type},
+  {"agingtv", gst_agingtv_get_type},
+  {"dicetv", gst_dicetv_get_type},
+  {"warptv", gst_warptv_get_type},
+  {"shagadelictv", gst_shagadelictv_get_type},
+  {"vertigotv", gst_vertigotv_get_type},
+  {"revtv", gst_revtv_get_type},
+  {"quarktv", gst_quarktv_get_type},
+  {"optv", gst_optv_get_type},
+  {"radioactv", gst_radioactv_get_type},
+  {"streaktv", gst_streaktv_get_type},
+  {"rippletv", gst_rippletv_get_type},
   {NULL, 0},
 };
 
-
-GstStaticPadTemplate gst_effectv_src_template = GST_STATIC_PAD_TEMPLATE ("src",
-    GST_PAD_SRC,
-    GST_PAD_ALWAYS,
-    GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx "; " GST_VIDEO_CAPS_RGBx)
-    );
-
-GstStaticPadTemplate gst_effectv_sink_template =
-    GST_STATIC_PAD_TEMPLATE ("sink",
-    GST_PAD_SINK,
-    GST_PAD_ALWAYS,
-    GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx "; " GST_VIDEO_CAPS_RGBx)
-    );
-
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
   gint i = 0;
 
-  if (!gst_library_load ("gstvideofilter"))
-    return FALSE;
-
   while (_elements[i].name) {
     if (!gst_element_register (plugin, _elements[i].name,
             GST_RANK_NONE, (_elements[i].type) ()))
@@ -85,4 +80,4 @@ GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
     GST_VERSION_MINOR,
     "effectv",
     "effect plugins from the effectv project",
-    plugin_init, VERSION, "LGPL", GST_PACKAGE, GST_ORIGIN);
+    plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);