mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: also remove creating objects
When an object is created, it is marked creating until all roundtrips complete. If the object is removed in between, we don't remove it because find_object does not return creating objects. Make find_object also return the creating objects to fix this.
This commit is contained in:
		
							parent
							
								
									73bf30efa6
								
							
						
					
					
						commit
						f70fdf5605
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -165,8 +165,6 @@ static struct object *find_object(struct manager *m, uint32_t id)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct object *o;
 | 
						struct object *o;
 | 
				
			||||||
	spa_list_for_each(o, &m->this.object_list, this.link) {
 | 
						spa_list_for_each(o, &m->this.object_list, this.link) {
 | 
				
			||||||
		if (o->this.creating)
 | 
					 | 
				
			||||||
			continue;
 | 
					 | 
				
			||||||
		if (o->this.id == id)
 | 
							if (o->this.id == id)
 | 
				
			||||||
			return o;
 | 
								return o;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue