mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	client-stream: swap local and remote io area
This commit is contained in:
		
							parent
							
								
									c01112d6c2
								
							
						
					
					
						commit
						bb7be076bb
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
					@ -761,15 +761,16 @@ static int impl_node_process(struct spa_node *node)
 | 
				
			||||||
			trigger = status & SPA_STATUS_HAVE_BUFFER;
 | 
								trigger = status & SPA_STATUS_HAVE_BUFFER;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	else {
 | 
						else {
 | 
				
			||||||
 | 
							struct spa_io_buffers tmp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		spa_log_trace(this->log, "%p: process %d/%d %d/%d", this,
 | 
							spa_log_trace(this->log, "%p: process %d/%d %d/%d", this,
 | 
				
			||||||
				impl->io->status, impl->io->buffer_id,
 | 
									impl->io->status, impl->io->buffer_id,
 | 
				
			||||||
				impl->client_port_mix.io->status,
 | 
									impl->client_port_mix.io->status,
 | 
				
			||||||
				impl->client_port_mix.io->buffer_id);
 | 
									impl->client_port_mix.io->buffer_id);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (impl->direction == SPA_DIRECTION_INPUT)
 | 
							tmp = *impl->io;
 | 
				
			||||||
			*impl->client_port_mix.io = *impl->io;
 | 
					 | 
				
			||||||
		else
 | 
					 | 
				
			||||||
		*impl->io = *impl->client_port_mix.io;
 | 
							*impl->io = *impl->client_port_mix.io;
 | 
				
			||||||
 | 
							*impl->client_port_mix.io = tmp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		status = impl->io->status;
 | 
							status = impl->io->status;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue