mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
loop: pass spa_dict to *_loop_new
Make the thread_loop alloc its own loop by default to simplify some core. Add extra new_full method to pass a custom pw_loop. Make other loop implementations ready to support custom loops if we want that later.
This commit is contained in:
parent
828bd30879
commit
698ab911c3
21 changed files with 215 additions and 192 deletions
|
|
@ -44,7 +44,7 @@ pa_threaded_mainloop *pa_threaded_mainloop_new(void)
|
|||
if (m->loop == NULL)
|
||||
goto no_mem;
|
||||
|
||||
m->tloop = pw_thread_loop_new(m->loop->loop, NULL);
|
||||
m->tloop = pw_thread_loop_new_full(m->loop->loop, "pipewire-pulse", NULL);
|
||||
if (m->tloop == NULL)
|
||||
goto no_mem;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue