mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
More hacking
Add spa based v4l2 pinos module Add allocation params to port_alloc_buffers Let the app do allocation for handles.
This commit is contained in:
parent
4c7cee6b28
commit
6ab8af91e0
41 changed files with 4733 additions and 351 deletions
|
|
@ -75,7 +75,8 @@ make_node (SpaHandle **handle, const SpaNode **node, const char *lib, const char
|
|||
if (strcmp (factory->name, name))
|
||||
continue;
|
||||
|
||||
if ((res = factory->instantiate (factory, handle)) < 0) {
|
||||
*handle = calloc (1, factory->size);
|
||||
if ((res = factory->init (factory, *handle)) < 0) {
|
||||
printf ("can't make factory instance: %d\n", res);
|
||||
return res;
|
||||
}
|
||||
|
|
@ -200,8 +201,8 @@ make_nodes (AppData *data)
|
|||
printf ("got get_props error %d\n", res);
|
||||
|
||||
value.type = SPA_PROP_TYPE_STRING;
|
||||
value.size = strlen ("hw:1")+1;
|
||||
value.value = "hw:1";
|
||||
value.value = "hw:0";
|
||||
value.size = strlen (value.value)+1;
|
||||
props->set_prop (props, spa_props_index_for_name (props, "device"), &value);
|
||||
|
||||
if ((res = data->sink_node->set_props (data->sink, props)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue