summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiko Yamada <rik0yamada@yahoo.co.jp>2012-06-03 12:44:29 +0900
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2012-06-23 17:13:25 +0300
commitbdd1a01c829dfd61d0b823a358492974fbe75c8a (patch)
treefeac2be8b2dc0a51b31c63d4ce58e1336e2a6619
parentfae1d4e953a389778750151a62941515e737d72e (diff)
downloadgupnp-dlna-bdd1a01c829dfd61d0b823a358492974fbe75c8a.tar.gz
Remove explicit calls to g_thread_init()
With recent glib, g_type_init() initializes the thread system for us and g_thread_init() has been deprecated in GLib-2.32. https://bugzilla.gnome.org/show_bug.cgi?id=673472
-rw-r--r--configure.ac2
-rw-r--r--tests/dlna-encoding.c3
-rw-r--r--tests/dlna-profile-parser.c3
-rw-r--r--tools/gupnp-dlna-info.c3
-rw-r--r--tools/gupnp-dlna-ls-profiles.c3
5 files changed, 6 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index f6b5c54..9db94d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,6 +50,8 @@ AC_SUBST(GST_MAJORMINOR)
GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API"
AC_SUBST(GST_CFLAGS)
+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.24)
+
# glib-genmarshal
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
AC_SUBST(GLIB_GENMARSHAL)
diff --git a/tests/dlna-encoding.c b/tests/dlna-encoding.c
index 95e4f3f..e819801 100644
--- a/tests/dlna-encoding.c
+++ b/tests/dlna-encoding.c
@@ -199,8 +199,7 @@ main (int argc, char **argv)
GUPnPDLNAProfile *profile;
gchar *inputuri;
- if (!g_thread_supported ())
- g_thread_init (NULL);
+ g_type_init ();
ctx = g_option_context_new ("- encode URIs with GstProfile and encodebin");
g_option_context_add_main_entries (ctx, options, NULL);
diff --git a/tests/dlna-profile-parser.c b/tests/dlna-profile-parser.c
index ee45d10..3115519 100644
--- a/tests/dlna-profile-parser.c
+++ b/tests/dlna-profile-parser.c
@@ -103,8 +103,7 @@ main (int argc, char **argv)
GOptionContext *ctx;
- if (!g_thread_supported ())
- g_thread_init (NULL);
+ g_type_init ();
ctx = g_option_context_new (" - test to parse dlna profiles");
g_option_context_add_main_entries (ctx, options, NULL);
diff --git a/tools/gupnp-dlna-info.c b/tools/gupnp-dlna-info.c
index 961cc76..399c3e2 100644
--- a/tools/gupnp-dlna-info.c
+++ b/tools/gupnp-dlna-info.c
@@ -452,8 +452,7 @@ main (int argc, char **argv)
GOptionContext *ctx;
- if (!g_thread_supported ())
- g_thread_init(NULL);
+ g_type_init ();
ctx = g_option_context_new (" - program to extract DLNA and related metadata");
g_option_context_add_main_entries (ctx, options, NULL);
diff --git a/tools/gupnp-dlna-ls-profiles.c b/tools/gupnp-dlna-ls-profiles.c
index 567ef8d..ecaa98b 100644
--- a/tools/gupnp-dlna-ls-profiles.c
+++ b/tools/gupnp-dlna-ls-profiles.c
@@ -103,8 +103,7 @@ main (int argc, char **argv)
GOptionContext *ctx;
- if (!g_thread_supported ())
- g_thread_init(NULL);
+ g_type_init ();
ctx = g_option_context_new (" - program to list all the DLNA profiles supported by gupnp-dlna");
g_option_context_add_main_entries (ctx, options, NULL);