mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
[MOVED FROM BAD 5/5] equalizer-test: Initialize debug category after gst_init() to fix segfault
This commit is contained in:
parent
bece468db4
commit
dd77fddeea
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