mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse: set monitor as device.class for monitor sources
This commit is contained in:
		
							parent
							
								
									c91afe2525
								
							
						
					
					
						commit
						60df925dfd
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -827,7 +827,8 @@ static int source_callback(pa_context *c, struct global *g, struct source_data *
 | 
				
			||||||
		if ((str = spa_dict_lookup(info->props, PW_KEY_NODE_NAME)))
 | 
							if ((str = spa_dict_lookup(info->props, PW_KEY_NODE_NAME)))
 | 
				
			||||||
			pa_proplist_setf(i.proplist, PW_KEY_NODE_NAME, "%s.monitor", str);
 | 
								pa_proplist_setf(i.proplist, PW_KEY_NODE_NAME, "%s.monitor", str);
 | 
				
			||||||
		if ((str = spa_dict_lookup(info->props, PW_KEY_NODE_DESCRIPTION)))
 | 
							if ((str = spa_dict_lookup(info->props, PW_KEY_NODE_DESCRIPTION)))
 | 
				
			||||||
			pa_proplist_setf(i.proplist, PW_KEY_NODE_DESCRIPTION, "Monitor or %s", str);
 | 
								pa_proplist_setf(i.proplist, PW_KEY_NODE_DESCRIPTION, "Monitor of %s", str);
 | 
				
			||||||
 | 
							pa_proplist_setf(i.proplist, PW_KEY_DEVICE_CLASS, "monitor");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((str = pa_proplist_gets(i.proplist, PW_KEY_NODE_NAME)))
 | 
						if ((str = pa_proplist_gets(i.proplist, PW_KEY_NODE_NAME)))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue