elements: add new valve element to build

Moved from gst-plugins-bad

https://bugzilla.gnome.org/show_bug.cgi?id=630808
This commit is contained in:
Tim-Philipp Müller 2010-12-30 00:22:38 +00:00
parent ad628d0bc5
commit 8bdcb84abd
3 changed files with 7 additions and 17 deletions

View 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

View file

@ -35,11 +35,12 @@
#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},
};

View 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)