1 /*
2 * Copyright (C) 2012,2013 Intel Corporation.
3 *
4 * Authors: Krzesimir Nowak <krnowak@openismus.com>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but 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 this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 */
21
22 #include <glib.h>
23 #include <gmodule.h>
24 #include <gst/gst.h>
25 #include "gupnp-dlna-gst-metadata-extractor.h"
26
27 G_MODULE_EXPORT GUPnPDLNAMetadataExtractor *
gupnp_dlna_get_default_extractor(void)28 gupnp_dlna_get_default_extractor (void)
29 {
30 return GUPNP_DLNA_METADATA_EXTRACTOR
31 (gupnp_dlna_gst_metadata_extractor_new ());
32 }
33
34 G_MODULE_EXPORT const gchar *
g_module_check_init(GModule * module G_GNUC_UNUSED)35 g_module_check_init (GModule *module G_GNUC_UNUSED)
36 {
37 if (!gst_is_initialized ())
38 gst_init (NULL, NULL);
39
40 return NULL;
41 }
42