Added gst-plugins-base-subtitles0.10-0.10.34 for Meego Harmattan 1.2
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / sys / v4l / gstv4l.c
1 /* GStreamer
2  *
3  * gstv4l.c: plugin for v4l elements
4  *
5  * Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #ifdef HAVE_CONFIG_H
24 #include "config.h"
25 #endif
26
27 #include "gst/gst-i18n-plugin.h"
28
29 #include <gst/gst.h>
30
31 #include "gstv4lelement.h"
32 #include "gstv4lsrc.h"
33 /* #include "gstv4ljpegsrc.h" */
34 /* #include "gstv4lmjpegsrc.h" */
35 /* #include "gstv4lmjpegsink.h" */
36
37 GST_DEBUG_CATEGORY (v4l_debug); /* used in v4l_calls.c and v4lsrc_calls.c */
38
39 static gboolean
40 plugin_init (GstPlugin * plugin)
41 {
42   GST_DEBUG_CATEGORY_INIT (v4l_debug, "v4l", 0, "V4L API calls");
43
44   if (!gst_element_register (plugin, "v4lsrc", GST_RANK_MARGINAL,
45           GST_TYPE_V4LSRC))
46 /*       !gst_element_register (plugin, "v4ljpegsrc", */
47 /*           GST_RANK_NONE, GST_TYPE_V4LJPEGSRC) || */
48 /*       !gst_element_register (plugin, "v4lmjpegsrc", */
49 /*           GST_RANK_NONE, GST_TYPE_V4LMJPEGSRC) || */
50 /*       !gst_element_register (plugin, "v4lmjpegsink", */
51 /*           GST_RANK_NONE, GST_TYPE_V4LMJPEGSINK)) */
52     return FALSE;
53
54 #ifdef ENABLE_NLS
55   setlocale (LC_ALL, "");
56   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
57   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
58 #endif /* ENABLE_NLS */
59
60   return TRUE;
61 }
62
63 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
64     GST_VERSION_MINOR,
65     "video4linux",
66     "elements for Video 4 Linux",
67     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)