1
2 /* GStreamer
3 * Copyright (C) 2019 Thibault Saunier <tsaunier@igalia.com>
4 *
5 * gsttranscodebin.c:
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 #ifdef HAVE_CONFIG_H
23 # include "config.h"
24 #endif
25
26 #include "gsttranscodeelements.h"
27 #include <gst/gst-i18n-plugin.h>
28 #include <gst/pbutils/pbutils.h>
29
30 #include <gst/pbutils/missing-plugins.h>
31
32 GST_DEBUG_CATEGORY_STATIC (gst_transcodebin_debug);
33 #define GST_CAT_DEFAULT gst_transcodebin_debug
34
35 void
transcodebin_element_init(GstPlugin * plugin)36 transcodebin_element_init (GstPlugin * plugin)
37 {
38 static gsize res = FALSE;
39
40 if (g_once_init_enter (&res)) {
41 gst_pb_utils_init ();
42 GST_DEBUG_CATEGORY_INIT (gst_transcodebin_debug, "transcodebin", 0,
43 "Transcodebin element");
44 g_once_init_leave (&res, TRUE);
45 }
46 }
47