From 451bbc4e1b12a8a64c9b5cddc4eddc4a4a53a8cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 16 Feb 2011 15:23:50 +0100 Subject: [PATCH] equalizer-test: Initialize debug category after gst_init() to fix segfault --- tests/icles/equalizer-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/icles/equalizer-test.c b/tests/icles/equalizer-test.c index d8fd8dda39..e8126fad3a 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;