1 /* GStreamer
2 *
3 * Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
4 * 2006 Edgard Lima <edgard.lima@gmail.com>
5 *
6 * gstv4l2.c: plugin for v4l2 elements
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22 */
23
24 #ifdef HAVE_CONFIG_H
25 #include "config.h"
26 #endif
27
28 #include "gst/gst-i18n-plugin.h"
29 #include <gst/gst.h>
30
31 #include "gstv4l2elements.h"
32
33
34 /* used in gstv4l2object.c and v4l2_calls.c */
35 GST_DEBUG_CATEGORY (v4l2_debug);
36 #define GST_CAT_DEFAULT v4l2_debug
37
38 void
v4l2_element_init(GstPlugin * plugin)39 v4l2_element_init (GstPlugin * plugin)
40 {
41 static gsize res = FALSE;
42 if (g_once_init_enter (&res)) {
43 GST_DEBUG_CATEGORY_INIT (v4l2_debug, "v4l2", 0, "V4L2 API calls");
44 #ifdef ENABLE_NLS
45 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
46 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
47 #endif /* ENABLE_NLS */
48 g_once_init_leave (&res, TRUE);
49 }
50 }
51