summaryrefslogtreecommitdiff
path: root/gst/app
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2007-03-11 00:48:26 +0000
committerDavid Schleef <ds@schleef.org>2007-03-11 00:48:26 +0000
commit6cf863e33c32c85022dbd3ff212f17028d636b69 (patch)
tree73c3d9ee1292768f7110093c6e84ba13e834f960 /gst/app
parent1596dd263ca1b60e2827dbfb6ca12b69a2b41bc9 (diff)
downloadgstreamer-plugins-base-6cf863e33c32c85022dbd3ff212f17028d636b69.tar.gz
Add appsrc/appsink example.
Original commit message from CVS: * configure.ac: * examples/Makefile.am: * examples/app/Makefile.am: * examples/app/appsrc_ex.c: Add appsrc/appsink example. * gst-libs/gst/app/Makefile.am: * gst-libs/gst/app/gstapp.c: * gst-libs/gst/app/gstappsink.c: * gst-libs/gst/app/gstappsink.h: * gst/app/gstapp.c: Add appsink.
Diffstat (limited to 'gst/app')
-rw-r--r--gst/app/gstapp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/app/gstapp.c b/gst/app/gstapp.c
index 6619dfac9..098fbdd20 100644
--- a/gst/app/gstapp.c
+++ b/gst/app/gstapp.c
@@ -24,14 +24,15 @@
#include <gst/gst.h>
#include <gst/app/gstappsrc.h>
+#include <gst/app/gstappsink.h>
static gboolean
plugin_init (GstPlugin * plugin)
{
- GST_DEBUG_CATEGORY_INIT (app_src_debug, "appsrc", 0, "appsrc");
+ gst_element_register (plugin, "appsrc", GST_RANK_NONE, GST_TYPE_APP_SRC);
+ gst_element_register (plugin, "appsink", GST_RANK_NONE, GST_TYPE_APP_SINK);
- return gst_element_register (plugin, "appsrc", GST_RANK_NONE,
- GST_TYPE_APP_SRC);
+ return TRUE;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,