[MOVED FROM BAD 5/5] equalizer-test: Initialize debug category after gst_init() to fix segfault

This commit is contained in:
Sebastian Dröge 2011-02-16 15:23:50 +01:00
parent bece468db4
commit dd77fddeea

View file

@ -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;