From c13183f182e89b1fee1ccefc54e277e64dbc1926 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 20 Dec 2020 11:44:37 +0100 Subject: [PATCH] impl-link: mark feedback links with property --- src/pipewire/impl-link.c | 2 ++ src/pipewire/keys.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/pipewire/impl-link.c b/src/pipewire/impl-link.c index 263aaf3e5..358b5747e 100644 --- a/src/pipewire/impl-link.c +++ b/src/pipewire/impl-link.c @@ -1064,6 +1064,8 @@ struct pw_impl_link *pw_context_create_link(struct pw_context *context, this = &impl->this; this->feedback = pw_impl_node_can_reach(input_node, output_node); + pw_properties_set(properties, PW_KEY_LINK_FEEDBACK, this->feedback ? "true" : NULL); + pw_log_debug(NAME" %p: new out-port:%p -> in-port:%p", this, output, input); if (user_data_size > 0) diff --git a/src/pipewire/keys.h b/src/pipewire/keys.h index 88c9ee12f..9048de907 100644 --- a/src/pipewire/keys.h +++ b/src/pipewire/keys.h @@ -167,6 +167,10 @@ extern "C" { #define PW_KEY_LINK_PASSIVE "link.passive" /**< indicate that a link is passive and * does not cause the graph to be * runnable. */ +#define PW_KEY_LINK_FEEDBACK "link.feedback" /**< indicate that a link is a feedback + * link and the target will receive data + * in the next cycle */ + /** device properties */ #define PW_KEY_DEVICE_ID "device.id" /**< device id */ #define PW_KEY_DEVICE_NAME "device.name" /**< device name */