mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	metadata: add client-id to properties
Add the client that owns the metadata to the properties.
This commit is contained in:
		
							parent
							
								
									9984dcd1ea
								
							
						
					
					
						commit
						9d9e3f2d23
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -79,9 +79,12 @@ static void *create_object(void *_data,
 | 
			
		|||
		goto error_resource;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (properties)
 | 
			
		||||
	if (properties) {
 | 
			
		||||
		pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
 | 
			
		||||
				pw_impl_factory_get_info(data->this)->id);
 | 
			
		||||
		pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
 | 
			
		||||
				pw_impl_client_get_info(client)->id);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	result = pw_metadata_new(pw_impl_client_get_context(client), metadata_resource, properties);
 | 
			
		||||
	if (result == NULL) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue