mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	impl-link: mark feedback links with property
This commit is contained in:
		
							parent
							
								
									34c33ccdbf
								
							
						
					
					
						commit
						c13183f182
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -1064,6 +1064,8 @@ struct pw_impl_link *pw_context_create_link(struct pw_context *context,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	this = &impl->this;
 | 
						this = &impl->this;
 | 
				
			||||||
	this->feedback = pw_impl_node_can_reach(input_node, output_node);
 | 
						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);
 | 
						pw_log_debug(NAME" %p: new out-port:%p -> in-port:%p", this, output, input);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (user_data_size > 0)
 | 
						if (user_data_size > 0)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -167,6 +167,10 @@ extern "C" {
 | 
				
			||||||
#define PW_KEY_LINK_PASSIVE		"link.passive"		/**< indicate that a link is passive and
 | 
					#define PW_KEY_LINK_PASSIVE		"link.passive"		/**< indicate that a link is passive and
 | 
				
			||||||
								  *  does not cause the graph to be
 | 
													  *  does not cause the graph to be
 | 
				
			||||||
								  *  runnable. */
 | 
													  *  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 */
 | 
					/** device properties */
 | 
				
			||||||
#define PW_KEY_DEVICE_ID		"device.id"		/**< device id */
 | 
					#define PW_KEY_DEVICE_ID		"device.id"		/**< device id */
 | 
				
			||||||
#define PW_KEY_DEVICE_NAME		"device.name"		/**< device name */
 | 
					#define PW_KEY_DEVICE_NAME		"device.name"		/**< device name */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue