mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
mapper: place strings in array
mapper: place strings in a big array. Make it possible to configure array and map extend size.
This commit is contained in:
parent
f613240b66
commit
d9a51b5d14
10 changed files with 41 additions and 25 deletions
|
|
@ -225,9 +225,9 @@ pinos_stream_new (PinosContext *context,
|
|||
this->state = PINOS_STREAM_STATE_UNCONNECTED;
|
||||
|
||||
impl->node_state = SPA_NODE_STATE_INIT;
|
||||
pinos_array_init (&impl->mem_ids);
|
||||
pinos_array_init (&impl->mem_ids, 64);
|
||||
pinos_array_ensure_size (&impl->mem_ids, sizeof (MemId) * 64);
|
||||
pinos_array_init (&impl->buffer_ids);
|
||||
pinos_array_init (&impl->buffer_ids, 32);
|
||||
pinos_array_ensure_size (&impl->buffer_ids, sizeof (BufferId) * 64);
|
||||
impl->pending_seq = SPA_ID_INVALID;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue