diff options
author | David Schleef <ds@schleef.org> | 2007-03-11 00:48:26 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2007-03-11 00:48:26 +0000 |
commit | 25c51917b442748b9862528b736f8562bf9a5a89 (patch) | |
tree | 6900dfb21e3ad536dfa15e2d5257839c5c14b1b0 /gst | |
parent | 4300e22d54d459ee17025207acc2ad627dff064e (diff) | |
download | gst-plugins-bad-25c51917b442748b9862528b736f8562bf9a5a89.tar.gz gst-plugins-bad-25c51917b442748b9862528b736f8562bf9a5a89.tar.bz2 gst-plugins-bad-25c51917b442748b9862528b736f8562bf9a5a89.zip |
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')
-rw-r--r-- | gst/app/gstapp.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <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, |