Tizen 2.0 Release
[framework/multimedia/gst-plugins-bad0.10.git] / gst / real / gstreal.c
1 /* Real wrapper plugin
2  *
3  * Copyright (C) Edward Hervey <bilboed@bilboed.com>
4  * 
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include "gstreal.h"
26 #include "gstrealvideodec.h"
27 #include "gstrealaudiodec.h"
28
29 static gboolean
30 plugin_init (GstPlugin * p)
31 {
32   if (!gst_element_register (p, "realvideodec", GST_RANK_MARGINAL,
33           GST_TYPE_REAL_VIDEO_DEC))
34     return FALSE;
35   if (!gst_element_register (p, "realaudiodec", GST_RANK_MARGINAL,
36           GST_TYPE_REAL_AUDIO_DEC))
37     return FALSE;
38
39   gst_plugin_add_dependency_simple (p, NULL, DEFAULT_REAL_CODECS_PATH, NULL,
40       GST_PLUGIN_DEPENDENCY_FLAG_NONE);
41
42   return TRUE;
43 }
44
45 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, "real",
46     "Decode REAL streams",
47     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)