From 25c51917b442748b9862528b736f8562bf9a5a89 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 11 Mar 2007 00:48:26 +0000 Subject: 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. --- gst/app/gstapp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gst/app') diff --git a/gst/app/gstapp.c b/gst/app/gstapp.c index 6619dfac..098fbdd2 100644 --- a/gst/app/gstapp.c +++ b/gst/app/gstapp.c @@ -24,14 +24,15 @@ #include #include +#include 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, -- cgit v1.2.1