1 /*
2 * GStreamer openal plugin
3 *
4 * Copyright (C) 2005 Wim Taymans <wim@fluendo.com>
5 * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
6 * Copyright (C) 2009-2010 Chris Robinson <chris.kcat@gmail.com>
7 * Copyright (C) 2013 Juan Manuel Borges Caño <juanmabcmail@gmail.com>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
18 *
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
23 */
24
25 #ifdef HAVE_CONFIG_H
26 #include "config.h"
27 #endif
28
29 #include "gstopenalelements.h"
30 #include "gstopenalsink.h"
31 #include "gstopenalsrc.h"
32
33 #include <gst/gst-i18n-plugin.h>
34
35 GST_DEBUG_CATEGORY (openal_debug);
36
37 void
openal_element_init(GstPlugin * plugin)38 openal_element_init (GstPlugin * plugin)
39 {
40 static gsize res = FALSE;
41 if (g_once_init_enter (&res)) {
42 #ifdef ENABLE_NLS
43 GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
44 LOCALEDIR);
45 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
46 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
47 #endif
48 GST_DEBUG_CATEGORY_INIT (openal_debug, "openal", 0, "openal plugins");
49 g_once_init_leave (&res, TRUE);
50 }
51 }
52