edfaabf6ca5c232d25372ce6b6aa3fd352ac45da
[framework/multimedia/gst-plugins-ext0.10.git] / avsystem / src / gstavsyssink.c
1 /*
2  * avsystem
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: JongHyuk Choi <jhchoi.choi@samsung.com>
7  *
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License as published by the
10  * Free Software Foundation; either version 2.1 of the License, or (at your option)
11  * any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc., 51
20  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23
24 #ifdef HAVE_CONFIG_H
25 #  include <config.h>
26 #endif
27
28 #include <gst/gst.h>
29 #include "gstavsysaudiosink.h"
30 #include "gstavsysmemsink.h"
31
32 GST_DEBUG_CATEGORY (avsystem_sink_debug);
33
34 static gboolean
35 plugin_init (GstPlugin *plugin)
36 {
37         gboolean error;
38         /*register the exact name you can find in the framework*/
39         error = gst_element_register (plugin, "avsysaudiosink",
40                                                                   GST_RANK_NONE,
41                                                                   GST_TYPE_AVSYS_AUDIO_SINK);
42
43         error = gst_element_register (plugin, "avsysmemsink",
44                                                                   GST_RANK_NONE,
45                                                                   GST_TYPE_AVSYS_MEM_SINK);
46
47         if (!error)
48                 goto failed;
49
50         GST_DEBUG_CATEGORY_INIT (avsystem_sink_debug, "avsystemsink", 0, "avsystem sink plugins");
51         return TRUE;
52
53 failed:
54
55         return FALSE;
56 }
57
58 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
59                 GST_VERSION_MINOR,
60                 "avsyssink",
61                 "AV system video/audio sink plug-in",
62                 plugin_init,
63                 PACKAGE_VERSION,
64                 "LGPL",
65                 "AV System Sink",
66                 "http://www.samsung.com")