mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	policy-node: only configure devices when active
Wait until a node is active before we attempt to configure it or else we don't yet have a format to configure it with.
This commit is contained in:
		
							parent
							
								
									d2452e1340
								
							
						
					
					
						commit
						0d6bbaa7e1
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -516,13 +516,13 @@ static int rescan_node(struct impl *impl, struct node *n)
 | 
			
		|||
	struct node *peer;
 | 
			
		||||
	struct sm_object *obj;
 | 
			
		||||
 | 
			
		||||
	if (n->type == NODE_TYPE_DEVICE) {
 | 
			
		||||
		configure_node(n, NULL);
 | 
			
		||||
	if (!n->active) {
 | 
			
		||||
		pw_log_debug(NAME " %p: node %d is not active", impl, n->id);
 | 
			
		||||
		return 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (!n->active) {
 | 
			
		||||
		pw_log_debug(NAME " %p: node %d is not active", impl, n->id);
 | 
			
		||||
	if (n->type == NODE_TYPE_DEVICE) {
 | 
			
		||||
		configure_node(n, NULL);
 | 
			
		||||
		return 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue