mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse: small cleanup
This commit is contained in:
		
							parent
							
								
									e1fc51d965
								
							
						
					
					
						commit
						aaffda9d17
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -838,7 +838,6 @@ static int source_callback(pa_context *c, struct global *g, struct source_data *
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_debug("source %d %s monitor:%d", g->id, i.name, monitor);
 | 
						pw_log_debug("source %d %s monitor:%d", g->id, i.name, monitor);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	i.index = g->id;
 | 
					 | 
				
			||||||
	if ((str = pa_proplist_gets(i.proplist, PW_KEY_NODE_DESCRIPTION)))
 | 
						if ((str = pa_proplist_gets(i.proplist, PW_KEY_NODE_DESCRIPTION)))
 | 
				
			||||||
		i.description = str;
 | 
							i.description = str;
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
| 
						 | 
					@ -859,10 +858,11 @@ static int source_callback(pa_context *c, struct global *g, struct source_data *
 | 
				
			||||||
		i.volume.values[n] = g->node_info.volume * g->node_info.channel_volumes[n] * PA_VOLUME_NORM;
 | 
							i.volume.values[n] = g->node_info.volume * g->node_info.channel_volumes[n] * PA_VOLUME_NORM;
 | 
				
			||||||
	i.mute = g->node_info.mute;
 | 
						i.mute = g->node_info.mute;
 | 
				
			||||||
	if (monitor) {
 | 
						if (monitor) {
 | 
				
			||||||
 | 
							i.index = g->node_info.monitor;
 | 
				
			||||||
		i.monitor_of_sink = g->id;
 | 
							i.monitor_of_sink = g->id;
 | 
				
			||||||
		i.monitor_of_sink_name = pa_context_find_global_name(c, g->id);
 | 
							i.monitor_of_sink_name = pa_context_find_global_name(c, g->id);
 | 
				
			||||||
		i.index = g->node_info.monitor;
 | 
					 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
 | 
							i.index = g->id;
 | 
				
			||||||
		i.monitor_of_sink = PA_INVALID_INDEX;
 | 
							i.monitor_of_sink = PA_INVALID_INDEX;
 | 
				
			||||||
		i.monitor_of_sink_name = NULL;
 | 
							i.monitor_of_sink_name = NULL;
 | 
				
			||||||
		if (info->props && (str = spa_dict_lookup(info->props, PW_KEY_DEVICE_API)))
 | 
							if (info->props && (str = spa_dict_lookup(info->props, PW_KEY_DEVICE_API)))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue