interleave: port to 0.11
[platform/upstream/gst-plugins-good.git] / ext / libmng / gstmng.c
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *
4  * This library is distributed in the hope that it will be useful,
5  * but WITHOUT ANY WARRANTY; without even the implied warranty of
6  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7  * Library General Public License for more details.
8  *
9  * You should have received a copy of the GNU Library General Public
10  * License along with this library; if not, write to the
11  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
12  * Boston, MA 02111-1307, USA.
13  *
14  */
15
16 #ifdef HAVE_CONFIG_H
17 #include <config.h>
18 #endif
19
20 #include <string.h>
21 #include <gst/gst.h>
22
23 #include "gstmngdec.h"
24 #include "gstmngenc.h"
25
26 static gboolean
27 plugin_init (GstPlugin * plugin)
28 {
29   if (!gst_element_register (plugin, "mngdec", GST_RANK_PRIMARY,
30           GST_TYPE_MNG_DEC))
31     return FALSE;
32
33   if (!gst_element_register (plugin, "mngenc", GST_RANK_NONE, GST_TYPE_MNG_ENC))
34     return FALSE;
35
36   return TRUE;
37 }
38
39 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
40     GST_VERSION_MINOR,
41     "mng",
42     "MNG plugin library", plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME,
43     GST_PACKAGE_ORIGIN)