mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	node: copy more properties to the global
Copy media.type and category to global Set media_class in example
This commit is contained in:
		
							parent
							
								
									b312e77385
								
							
						
					
					
						commit
						fa98389fef
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -466,6 +466,7 @@ static void make_node(struct data *data)
 | 
			
		|||
	props = pw_properties_new(PW_KEY_NODE_AUTOCONNECT, "1", NULL);
 | 
			
		||||
	if (data->path)
 | 
			
		||||
		pw_properties_set(props, PW_KEY_NODE_TARGET, data->path);
 | 
			
		||||
	pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Stream/Input/Video");
 | 
			
		||||
	pw_properties_set(props, PW_KEY_MEDIA_TYPE, "Video");
 | 
			
		||||
	pw_properties_set(props, PW_KEY_MEDIA_CATEGORY, "Capture");
 | 
			
		||||
	pw_properties_set(props, PW_KEY_MEDIA_ROLE, "Camera");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue