Thank Tanu Kaskinen, Fix the segfault issue, it should use pa_glib_mainloop instead of pa_threaded_mainloop