mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	reserve: Fix check for whether acquire succeeded or not
We only deem success if we successfully became the primary name owner.
This commit is contained in:
		
							parent
							
								
									272624fe83
								
							
						
					
					
						commit
						2c8e2f3a36
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -394,9 +394,12 @@ int rd_device_acquire(struct rd_device *d)
 | 
			
		|||
					(d->priority < INT32_MAX ? DBUS_NAME_FLAG_ALLOW_REPLACEMENT : 0),
 | 
			
		||||
					&error)) < 0) {
 | 
			
		||||
			dbus_error_free(&error);
 | 
			
		||||
			res = -EBUSY;
 | 
			
		||||
	}
 | 
			
		||||
	return res;
 | 
			
		||||
 | 
			
		||||
	if (res != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER)
 | 
			
		||||
		return -EBUSY;
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int rd_device_request_release(struct rd_device *d)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue