mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-01 11:37:57 +02:00
si-standard-link: associate links with endpoint-links
This commit is contained in:
parent
128b67e265
commit
e944abbcd5
2 changed files with 7 additions and 0 deletions
|
|
@ -256,6 +256,7 @@ create_links (WpSiStandardLink * self, WpTransition * transition,
|
|||
guint32 out_channel, in_channel;
|
||||
gboolean link_all = FALSE;
|
||||
guint i;
|
||||
guint32 eplink_id;
|
||||
|
||||
/* tuple format:
|
||||
uint32 node_id;
|
||||
|
|
@ -270,6 +271,9 @@ create_links (WpSiStandardLink * self, WpTransition * transition,
|
|||
core = find_core (self);
|
||||
g_return_val_if_fail (core, FALSE);
|
||||
|
||||
eplink_id = wp_session_item_get_associated_proxy_id (WP_SESSION_ITEM (self),
|
||||
WP_TYPE_ENDPOINT_LINK);
|
||||
|
||||
self->n_async_ops_wait = 0;
|
||||
self->node_links = g_ptr_array_new_with_free_func (g_object_unref);
|
||||
|
||||
|
|
@ -316,6 +320,8 @@ create_links (WpSiStandardLink * self, WpTransition * transition,
|
|||
wp_properties_setf (props, PW_KEY_LINK_OUTPUT_PORT, "%u", out_port_id);
|
||||
wp_properties_setf (props, PW_KEY_LINK_INPUT_NODE, "%u", in_node_id);
|
||||
wp_properties_setf (props, PW_KEY_LINK_INPUT_PORT, "%u", in_port_id);
|
||||
if (eplink_id != SPA_ID_INVALID)
|
||||
wp_properties_setf (props, "endpoint-link.id", "%u", eplink_id);
|
||||
|
||||
wp_debug_object (self, "create pw link: %u:%u (%s) -> %u:%u (%s)",
|
||||
out_node_id, out_port_id,
|
||||
|
|
|
|||
|
|
@ -286,6 +286,7 @@ struct {
|
|||
{ PW_KEY_CLIENT_ID, "Client" },
|
||||
{ PW_KEY_DEVICE_ID, "Device" },
|
||||
{ PW_KEY_ENDPOINT_CLIENT_ID, NULL },
|
||||
{ "endpoint-link.id", "EndpointLink" },
|
||||
{ PW_KEY_ENDPOINT_STREAM_ID, "EndpointStream" },
|
||||
{ PW_KEY_ENDPOINT_LINK_OUTPUT_ENDPOINT, NULL },
|
||||
{ PW_KEY_ENDPOINT_LINK_OUTPUT_STREAM, NULL },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue