• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  GStreamer pulseaudio plugin
3  *
4  *  Copyright (c) 2004-2008 Lennart Poettering
5  *
6  *  gst-pulse is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU Lesser General Public License as
8  *  published by the Free Software Foundation; either version 2.1 of the
9  *  License, or (at your option) any later version.
10  *
11  *  gst-pulse is distributed in the hope that it will be useful, but
12  *  WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  *  Lesser General Public License for more details.
15  *
16  *  You should have received a copy of the GNU Lesser General Public
17  *  License along with gst-pulse; if not, write to the Free Software
18  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
19  *  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 "gstpulseelements.h"
29 #include "pulsedeviceprovider.h"
30 
31 GST_DEBUG_CATEGORY (pulse_debug);
32 
33 GST_DEVICE_PROVIDER_REGISTER_DEFINE (pulsedeviceprovider, "pulsedeviceprovider",
34     GST_RANK_PRIMARY, GST_TYPE_PULSE_DEVICE_PROVIDER);
35 
36 void
pulse_element_init(GstPlugin * plugin)37 pulse_element_init (GstPlugin * plugin)
38 {
39   static gsize res = FALSE;
40 
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 
49     GST_DEBUG_CATEGORY_INIT (pulse_debug, "pulse", 0, "PulseAudio elements");
50 
51     g_once_init_leave (&res, TRUE);
52   }
53 }
54