• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer encoding bin
2  * Copyright (C) 2016 Jan Schmidt <jan@centricular.com>
3  *           (C) 2020 Thibault Saunier <tsaunier@igalia.com>
4  *           (C) 2009 Edward Hervey <edward.hervey@collabora.co.uk>
5  *           (C) 2009 Nokia Corporation
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., 51 Franklin St, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifdef HAVE_CONFIG_H
24 #include "config.h"
25 #endif
26 
27 #include <gst/gst.h>
28 #include <gst/gst-i18n-plugin.h>
29 
30 #include "gstencodingelements.h"
31 
32 void
encoding_element_init(GstPlugin * plugin)33 encoding_element_init (GstPlugin * plugin)
34 {
35   static gsize res = FALSE;
36 
37   if (g_once_init_enter (&res)) {
38 #ifdef ENABLE_NLS
39     GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
40         LOCALEDIR);
41     bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
42     bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
43 #endif
44     g_once_init_leave (&res, TRUE);
45   }
46 }
47