impl-link: mark feedback links with property

This commit is contained in:
Wim Taymans 2020-12-20 11:44:37 +01:00
parent 34c33ccdbf
commit c13183f182
2 changed files with 6 additions and 0 deletions

View file

@ -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)

View file

@ -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 */