mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
node: add max_ports to node info
This commit is contained in:
parent
21957e9e8d
commit
e9bedae5fa
30 changed files with 124 additions and 99 deletions
|
|
@ -146,7 +146,7 @@ static int impl_set_callbacks(struct spa_node *node,
|
|||
|
||||
info = SPA_PORT_INFO_INIT();
|
||||
info.change_mask = SPA_PORT_CHANGE_MASK_FLAGS;
|
||||
info.flags = SPA_PORT_INFO_FLAG_CAN_USE_BUFFERS;
|
||||
info.flags = SPA_PORT_FLAG_CAN_USE_BUFFERS;
|
||||
|
||||
d->callbacks->port_info(d->callbacks_data, SPA_DIRECTION_INPUT, 0, &info);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ static int impl_set_callbacks(struct spa_node *node,
|
|||
|
||||
info = SPA_PORT_INFO_INIT();
|
||||
info.change_mask = SPA_PORT_CHANGE_MASK_FLAGS | SPA_PORT_CHANGE_MASK_PROPS;
|
||||
info.flags = SPA_PORT_INFO_FLAG_CAN_USE_BUFFERS;
|
||||
info.flags = SPA_PORT_FLAG_CAN_USE_BUFFERS;
|
||||
port_items[0] = SPA_DICT_ITEM_INIT("port.dsp", "32 bit float mono audio");
|
||||
info.props = &SPA_DICT_INIT_ARRAY(port_items);
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ static int impl_set_callbacks(struct spa_node *node,
|
|||
|
||||
info = SPA_PORT_INFO_INIT();
|
||||
info.change_mask = SPA_PORT_CHANGE_MASK_FLAGS;
|
||||
info.flags = SPA_PORT_INFO_FLAG_CAN_USE_BUFFERS;
|
||||
info.flags = SPA_PORT_FLAG_CAN_USE_BUFFERS;
|
||||
|
||||
d->callbacks->port_info(d->callbacks_data, SPA_DIRECTION_INPUT, 0, &info);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue