mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-21 01:40:34 -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
|
|
@ -103,7 +103,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
|
||||
loop = pw_main_loop_new(pw_properties_copy(properties));
|
||||
loop = pw_main_loop_new(&properties->dict);
|
||||
if (loop == NULL) {
|
||||
pw_log_error("failed to create main-loop: %m");
|
||||
return -1;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#daemon config file for PipeWire version @VERSION@
|
||||
|
||||
#set-prop library.name.system support/libspa-support
|
||||
#set-prop core.data-loop.library.name.system support/libspa-support
|
||||
#set-prop context.data-loop.library.name.system support/libspa-support
|
||||
#set-prop link.max-buffers 64
|
||||
|
||||
add-spa-lib audio.convert* audioconvert/libspa-audioconvert
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue