mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: add property to make virtual nodes
Make a property to mark virtual nodes and use it to hide the client id from the sink-input/source-output info in pulse-server.
This commit is contained in:
		
							parent
							
								
									0e91233569
								
							
						
					
					
						commit
						7031471807
					
				
					 4 changed files with 17 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -4166,7 +4166,8 @@ static int fill_sink_input_info(struct client *client, struct message *m,
 | 
			
		|||
 | 
			
		||||
	if ((str = spa_dict_lookup(info->props, PW_KEY_MODULE_ID)) != NULL)
 | 
			
		||||
		module_id = (uint32_t)atoi(str);
 | 
			
		||||
	if ((str = spa_dict_lookup(info->props, PW_KEY_CLIENT_ID)) != NULL)
 | 
			
		||||
	if (!pw_manager_object_is_virtual(o) &&
 | 
			
		||||
	    (str = spa_dict_lookup(info->props, PW_KEY_CLIENT_ID)) != NULL)
 | 
			
		||||
		client_id = (uint32_t)atoi(str);
 | 
			
		||||
 | 
			
		||||
	collect_device_info(o, NULL, &dev_info);
 | 
			
		||||
| 
						 | 
				
			
			@ -4236,7 +4237,8 @@ static int fill_source_output_info(struct client *client, struct message *m,
 | 
			
		|||
 | 
			
		||||
	if ((str = spa_dict_lookup(info->props, PW_KEY_MODULE_ID)) != NULL)
 | 
			
		||||
		module_id = (uint32_t)atoi(str);
 | 
			
		||||
	if ((str = spa_dict_lookup(info->props, PW_KEY_CLIENT_ID)) != NULL)
 | 
			
		||||
	if (!pw_manager_object_is_virtual(o) &&
 | 
			
		||||
	    (str = spa_dict_lookup(info->props, PW_KEY_CLIENT_ID)) != NULL)
 | 
			
		||||
		client_id = (uint32_t)atoi(str);
 | 
			
		||||
 | 
			
		||||
	collect_device_info(o, NULL, &dev_info);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue