mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-11 04:27:48 -05:00
Merge branch 'pr/async-logger' into 'master'
Draft: log: add async logging See merge request pulseaudio/pulseaudio!459
This commit is contained in:
commit
ffbc8c3610
8 changed files with 187 additions and 3 deletions
|
|
@ -1243,6 +1243,9 @@ int main(int argc, char *argv[]) {
|
|||
if (!conf->no_cpu_limit)
|
||||
pa_assert_se(pa_cpu_limit_init(pa_mainloop_get_api(mainloop)) == 0);
|
||||
|
||||
if (conf->log_async)
|
||||
pa_log_start_async();
|
||||
|
||||
buf = pa_strbuf_new();
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
|
|
@ -1356,6 +1359,8 @@ int main(int argc, char *argv[]) {
|
|||
#endif
|
||||
|
||||
finish:
|
||||
pa_log_stop_async();
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
if (server_bus)
|
||||
pa_dbus_connection_unref(server_bus);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue