tizen 2.0 init
[framework/multimedia/gst-plugins-base0.10.git] / gst / app / gstapp.c
1 /* GStreamer
2  * Copyright (C) 2007 David Schleef <ds@schleef.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 /**
20  * SECTION:element-appsrc
21  *
22  * The appsrc element can be used by applications to insert data into a
23  * GStreamer pipeline. Unlike most GStreamer elements, Appsrc provides
24  * external API functions.
25  *
26  * For the documentation of the API, please see the
27  * <link linkend="gst-plugins-base-libs-appsrc">libgstapp</link> section in the
28  * GStreamer Plugins Base Libraries documentation.
29  *
30  * Since: 0.10.22
31  */
32 /**
33  * SECTION:element-appsink
34  *
35  * Appsink is a sink plugin that supports many different methods for making
36  * the application get a handle on the GStreamer data in a pipeline. Unlike
37  * most GStreamer elements, Appsink provides external API functions.
38  *
39  * For the documentation of the API, please see the
40  * <link linkend="gst-plugins-base-libs-appsink">libgstapp</link> section in
41  * the GStreamer Plugins Base Libraries documentation.
42  *
43  * Since: 0.10.22
44  */
45
46 #ifdef HAVE_CONFIG_H
47 #include "config.h"
48 #endif
49
50 #include <gst/gst.h>
51
52 #include <gst/app/gstappsrc.h>
53 #include <gst/app/gstappsink.h>
54
55 static gboolean
56 plugin_init (GstPlugin * plugin)
57 {
58   gst_element_register (plugin, "appsrc", GST_RANK_NONE, GST_TYPE_APP_SRC);
59   gst_element_register (plugin, "appsink", GST_RANK_NONE, GST_TYPE_APP_SINK);
60
61   return TRUE;
62 }
63
64 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
65     GST_VERSION_MINOR,
66     "app",
67     "Elements used to communicate with applications",
68     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)