IOThread: use FatalError() on g_thread_create() error
New GLib versions don't fail.
This commit is contained in:
@@ -169,11 +169,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
io_thread_init();
|
||||
if (!io_thread_start(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
g_error_free(error);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
io_thread_start();
|
||||
|
||||
if (!input_stream_global_init(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
|
@@ -116,11 +116,7 @@ int main(int argc, char **argv)
|
||||
config_global_init();
|
||||
|
||||
io_thread_init();
|
||||
if (!io_thread_start(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
g_error_free(error);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
io_thread_start();
|
||||
|
||||
#ifdef ENABLE_ARCHIVE
|
||||
archive_plugin_init_all();
|
||||
|
@@ -162,11 +162,7 @@ int main(int argc, char **argv)
|
||||
#endif
|
||||
|
||||
io_thread_init();
|
||||
if (!io_thread_start(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
g_error_free(error);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
io_thread_start();
|
||||
|
||||
if (!input_stream_global_init(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
|
@@ -163,11 +163,7 @@ int main(int argc, char **argv)
|
||||
g_log_set_default_handler(my_log_func, NULL);
|
||||
|
||||
io_thread_init();
|
||||
if (!io_thread_start(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
g_error_free(error);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
io_thread_start();
|
||||
|
||||
if (!input_stream_global_init(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
|
@@ -134,11 +134,7 @@ int main(int argc, char **argv)
|
||||
config_global_init();
|
||||
|
||||
io_thread_init();
|
||||
if (!io_thread_start(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
g_error_free(error);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
io_thread_start();
|
||||
|
||||
#ifdef ENABLE_ARCHIVE
|
||||
archive_plugin_init_all();
|
||||
|
@@ -210,11 +210,7 @@ int main(int argc, char **argv)
|
||||
main_loop = new EventLoop(EventLoop::Default());
|
||||
|
||||
io_thread_init();
|
||||
if (!io_thread_start(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
g_error_free(error);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
io_thread_start();
|
||||
|
||||
/* initialize the audio output */
|
||||
|
||||
|
@@ -77,11 +77,7 @@ main(int argc, char **argv)
|
||||
config_global_init();
|
||||
|
||||
io_thread_init();
|
||||
if (!io_thread_start(&error)) {
|
||||
g_warning("%s", error->message);
|
||||
g_error_free(error);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
io_thread_start();
|
||||
|
||||
archive_plugin_init_all();
|
||||
|
||||
|
Reference in New Issue
Block a user