mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Simplify node activation
Don't directly expose the state change methods. Only expose an activate method for nodes that indicates if the node should be scheduled or not. Let the link automatically negotiate two active nodes. Make some defines for properties. Use link property to make passive links. Passive links don't activate the nodes. Make sure the mainloop quits when quit is called before run.
This commit is contained in:
		
							parent
							
								
									304a6d1796
								
							
						
					
					
						commit
						93a52f4837
					
				
					 32 changed files with 181 additions and 86 deletions
				
			
		| 
						 | 
				
			
			@ -60,8 +60,8 @@ static int make_node(struct data *data)
 | 
			
		|||
                                  "spa.factory.name", data->factory, NULL);
 | 
			
		||||
 | 
			
		||||
	if (data->path) {
 | 
			
		||||
		pw_properties_set(props, "pipewire.autoconnect", "1");
 | 
			
		||||
		pw_properties_set(props, "pipewire.target.node", data->path);
 | 
			
		||||
		pw_properties_set(props, PW_NODE_PROP_AUTOCONNECT, "1");
 | 
			
		||||
		pw_properties_set(props, PW_NODE_PROP_TARGET_NODE, data->path);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
        data->node = pw_factory_create_object(factory,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue