mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	client-stream: add media.class on node
Add the media.class property on the node as well.
This commit is contained in:
		
							parent
							
								
									fd5e315a10
								
							
						
					
					
						commit
						c0a6c83227
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -890,6 +890,7 @@ static void client_node_initialized(void *data)
 | 
			
		|||
	const char *str, *dir, *type;
 | 
			
		||||
	char media_class[64];
 | 
			
		||||
	bool exclusive;
 | 
			
		||||
	struct spa_dict_item items[1];
 | 
			
		||||
 | 
			
		||||
	pw_log_debug("client-stream %p: initialized", &impl->this);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1024,12 +1025,13 @@ static void client_node_initialized(void *data)
 | 
			
		|||
 | 
			
		||||
	snprintf(media_class, sizeof(media_class), "Stream/%s/%s", dir, type);
 | 
			
		||||
 | 
			
		||||
	items[0] = SPA_DICT_ITEM_INIT("media.class", media_class);
 | 
			
		||||
	pw_node_update_properties(impl->this.node, &SPA_DICT_INIT(items, 1));
 | 
			
		||||
 | 
			
		||||
	pw_node_register(impl->this.node,
 | 
			
		||||
			pw_resource_get_client(impl->client_node->resource),
 | 
			
		||||
			impl->client_node->parent,
 | 
			
		||||
			pw_properties_new(
 | 
			
		||||
				"media.class", media_class,
 | 
			
		||||
				NULL));
 | 
			
		||||
			NULL);
 | 
			
		||||
 | 
			
		||||
	pw_log_debug("client-stream %p: activating", &impl->this);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue