mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -05:00
context: add some more defaults
Make a property to allow mlock and use it. mlock in stream and filter when asked to mmap mem.
This commit is contained in:
parent
dcec3f12b5
commit
41b47e726e
8 changed files with 61 additions and 25 deletions
|
|
@ -39,7 +39,6 @@
|
|||
#define NAME "buffers"
|
||||
|
||||
#define MAX_ALIGN 32
|
||||
#define MAX_BUFFERS 64
|
||||
|
||||
struct port {
|
||||
struct spa_node *node;
|
||||
|
|
@ -241,10 +240,7 @@ int pw_buffers_negotiate(struct pw_context *context, uint32_t flags,
|
|||
offset += SPA_ROUND_UP_N(SPA_POD_SIZE(params[i]), 8);
|
||||
}
|
||||
|
||||
if ((str = pw_properties_get(context->properties, "link.max-buffers")) != NULL)
|
||||
max_buffers = pw_properties_parse_int(str);
|
||||
else
|
||||
max_buffers = MAX_BUFFERS;
|
||||
max_buffers = context->defaults.link_max_buffers;
|
||||
|
||||
if ((str = pw_properties_get(context->properties, PW_KEY_CPU_MAX_ALIGN)) != NULL)
|
||||
align = pw_properties_parse_int(str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue