summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2011-02-03 13:41:27 +0100
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2011-02-03 14:52:34 +0200
commitad5a5243c3a24f736f56fc337750b42d5ef847e2 (patch)
tree30ce2853135fe4788537aa36404f60148597c330 /tests
parentb0412f76cf67e4369bea1387f80c49ace1f5fa8d (diff)
downloadgupnp-dlna-ad5a5243c3a24f736f56fc337750b42d5ef847e2.tar.gz
Only initialize thread system once
Added a check to see if g_threads are supported before initializing g_threads.
Diffstat (limited to 'tests')
-rw-r--r--tests/dlna-profile-parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/dlna-profile-parser.c b/tests/dlna-profile-parser.c
index 2f2bd60..4c73da3 100644
--- a/tests/dlna-profile-parser.c
+++ b/tests/dlna-profile-parser.c
@@ -103,7 +103,8 @@ main (int argc, char **argv)
GOptionContext *ctx;
- g_thread_init (NULL);
+ if (!g_thread_supported ())
+ g_thread_init (NULL);
ctx = g_option_context_new (" - test to parse dlna profiles");
g_option_context_add_main_entries (ctx, options, NULL);