mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	remote: clear mem id
Clear the memid so that find_mem can't find old memory anymore.
This commit is contained in:
		
							parent
							
								
									e9685c794f
								
							
						
					
					
						commit
						059571cec0
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -600,6 +600,7 @@ static void clear_memid(struct node_data *data, struct mem_id *mid)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		fd = mid->fd;
 | 
							fd = mid->fd;
 | 
				
			||||||
		mid->fd = -1;
 | 
							mid->fd = -1;
 | 
				
			||||||
 | 
							mid->id = SPA_ID_INVALID;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		pw_array_for_each(m, &data->mem_ids) {
 | 
							pw_array_for_each(m, &data->mem_ids) {
 | 
				
			||||||
			if (m->fd == fd) {
 | 
								if (m->fd == fd) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue