fa17fa47b88b57349c4fc1bfa3efd01c1c59fdec
[platform/upstream/gst-plugins-good.git] / gst / avi / gstavi.c
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@temple-baptist.com>
3  *
4  * gstavi.c: plugin registering
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifdef HAVE_CONFIG_H
23 #include "config.h"
24 #endif
25
26 #include "gst/gst-i18n-plugin.h"
27
28 #include "gstavidemux.h"
29 #include "gstavimux.h"
30
31 static gboolean
32 plugin_init (GstPlugin *plugin)
33 {
34   if (!gst_library_load ("riff"))
35     return FALSE;
36
37 #ifdef ENABLE_NLS
38   setlocale (LC_ALL, "");
39   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
40 #endif /* ENABLE_NLS */
41
42   return (gst_element_register (plugin, "avidemux",
43                                 GST_RANK_PRIMARY,
44                                 GST_TYPE_AVI_DEMUX) &&
45           gst_element_register (plugin, "avimux",
46                                 GST_RANK_NONE,
47                                 GST_TYPE_AVIMUX));
48 }
49
50 GST_PLUGIN_DEFINE (
51   GST_VERSION_MAJOR,
52   GST_VERSION_MINOR,
53   "avi",
54   "AVI stream handling",
55   plugin_init,
56   VERSION,
57   "LGPL",
58   GST_PACKAGE,
59   GST_ORIGIN
60 )