mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	remote-node: first run the tee and then signal ready
We first need to run the tee so that all the io areas are ready before we can start the driver on the daemon.
This commit is contained in:
		
							parent
							
								
									e31f1fcdca
								
							
						
					
					
						commit
						264383cdd4
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1176,11 +1176,15 @@ static int node_ready(void *d, int status)
 | 
			
		|||
{
 | 
			
		||||
	struct node_data *data = d;
 | 
			
		||||
	struct pw_node *node = data->node;
 | 
			
		||||
	struct pw_port *p;
 | 
			
		||||
	uint64_t cmd = 1;
 | 
			
		||||
 | 
			
		||||
	pw_log_trace("node %p: ready driver:%d exported:%d status:%d", node,
 | 
			
		||||
			node->driver, node->exported, status);
 | 
			
		||||
 | 
			
		||||
	spa_list_for_each(p, &node->rt.output_mix, rt.node_link)
 | 
			
		||||
		spa_node_process(p->mix);
 | 
			
		||||
 | 
			
		||||
	if (write(data->rtwritefd, &cmd, sizeof(cmd)) != sizeof(cmd))
 | 
			
		||||
		pw_log_warn("node %p: write failed %m", node);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue