mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	modules: make a default node.link-group property
When nothing else is specified, add a default node.link-group property so that all the nodes from this echo-canceler are tagged as being linked together in some way. This allows the session manager to follow the relations between the different streams and avoids linking those related nodes together, which avoids playing or recording from itself in a loop. Fixes #1376
This commit is contained in:
		
							parent
							
								
									587e9d5fb1
								
							
						
					
					
						commit
						bd98c6771e
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -854,6 +854,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
 | 
						if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
 | 
				
			||||||
		pw_properties_setf(props, PW_KEY_NODE_GROUP, "echo-cancel-%u", id);
 | 
							pw_properties_setf(props, PW_KEY_NODE_GROUP, "echo-cancel-%u", id);
 | 
				
			||||||
 | 
						if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
 | 
				
			||||||
 | 
							pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "echo-cancel-%u", id);
 | 
				
			||||||
	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
 | 
						if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
 | 
				
			||||||
		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
 | 
							pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue