mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
handle: make method to get size
This commit is contained in:
parent
11f42d6262
commit
de36330917
37 changed files with 198 additions and 39 deletions
|
|
@ -224,7 +224,7 @@ int main(int argc, char *argv[])
|
|||
struct spa_handle *handle;
|
||||
void *interface;
|
||||
|
||||
handle = calloc(1, factory->size);
|
||||
handle = calloc(1, spa_handle_factory_get_size(factory, NULL));
|
||||
if ((res =
|
||||
spa_handle_factory_init(factory, handle, NULL, data.support,
|
||||
data.n_support)) < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue