summaryrefslogtreecommitdiff
path: root/tests/icles
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2011-02-16 15:23:50 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-02-16 15:26:44 +0100
commit451bbc4e1b12a8a64c9b5cddc4eddc4a4a53a8cf (patch)
treefc3a636a52ef168592690416cc7ae12834bdf91b /tests/icles
parentb80b6d642667fe5e06587860120c2ca5459a5f1f (diff)
equalizer-test: Initialize debug category after gst_init() to fix segfault
Diffstat (limited to 'tests/icles')
-rw-r--r--tests/icles/equalizer-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/icles/equalizer-test.c b/tests/icles/equalizer-test.c
index d8fd8dda3..e8126fad3 100644
--- a/tests/icles/equalizer-test.c
+++ b/tests/icles/equalizer-test.c
@@ -182,8 +182,6 @@ main (int argc, char **argv)
if (!g_thread_supported ())
g_thread_init (NULL);
- GST_DEBUG_CATEGORY_INIT (equalizer_test_debug, "equalizertest", 0, "eqtest");
-
/* command line option parsing */
ctx = g_option_context_new ("FILENAME");
g_option_context_add_group (ctx, gst_init_get_option_group ());
@@ -194,6 +192,8 @@ main (int argc, char **argv)
return -1;
}
+ GST_DEBUG_CATEGORY_INIT (equalizer_test_debug, "equalizertest", 0, "eqtest");
+
if (filenames == NULL || *filenames == NULL) {
g_printerr ("Please specify a file to play back\n");
return -1;