mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
equalizer-test: Initialize debug category after gst_init() to fix segfault
This commit is contained in:
parent
b80b6d6426
commit
451bbc4e1b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue