elements: add new valve element to build
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 30 Dec 2010 00:22:38 +0000 (00:22 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 31 Dec 2010 00:51:12 +0000 (00:51 +0000)
Moved from gst-plugins-bad

https://bugzilla.gnome.org/show_bug.cgi?id=630808

plugins/elements/Makefile.am
plugins/elements/gstelements.c
plugins/elements/gstvalve.c

index 8019041..39f4274 100644 (file)
@@ -12,11 +12,12 @@ libgstcoreelements_la_SOURCES =     \
        gstfilesink.c           \
        gstfilesrc.c            \
        gstidentity.c           \
+       gstmultiqueue.c         \
        gstqueue.c              \
        gstqueue2.c             \
        gsttee.c                \
        gsttypefindelement.c    \
-       gstmultiqueue.c
+       gstvalve.c
 
 libgstcoreelements_la_CFLAGS = $(GST_OBJ_CFLAGS)
 libgstcoreelements_la_LIBADD = \
@@ -34,11 +35,12 @@ noinst_HEADERS =            \
        gstfilesink.h           \
        gstfilesrc.h            \
        gstidentity.h           \
+       gstmultiqueue.h         \
        gstqueue.h              \
        gstqueue2.h             \
        gsttee.h                \
        gsttypefindelement.h    \
-       gstmultiqueue.h
+       gstvalve.h
 
 EXTRA_DIST = gstfdsrc.c \
             gstfdsink.c
index 8380483..883d790 100644 (file)
 #include "gstfilesink.h"
 #include "gstfilesrc.h"
 #include "gstidentity.h"
+#include "gstmultiqueue.h"
 #include "gstqueue.h"
 #include "gstqueue2.h"
 #include "gsttee.h"
 #include "gsttypefindelement.h"
-#include "gstmultiqueue.h"
+#include "gstvalve.h"
 
 struct _elements_entry
 {
@@ -65,6 +66,7 @@ static struct _elements_entry _elements[] = {
   {"tee", GST_RANK_NONE, gst_tee_get_type},
   {"typefind", GST_RANK_NONE, gst_type_find_element_get_type},
   {"multiqueue", GST_RANK_NONE, gst_multi_queue_get_type},
+  {"valve", GST_RANK_NONE, gst_valve_get_type},
   {NULL, 0},
 };
 
index 977a4af..fd70cf3 100644 (file)
@@ -268,17 +268,3 @@ gst_valve_getcaps (GstPad * pad)
 
   return caps;
 }
-
-
-static gboolean
-plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "valve",
-      GST_RANK_MARGINAL, GST_TYPE_VALVE);
-}
-
-GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
-    GST_VERSION_MINOR,
-    "valve",
-    "Valve",
-    plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)