mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Improve enum_param
Add an argument to pass the result param to the caller instead of having the caller have to pick it up from the builder. Improve docs for node, clock and monitor Pass spa_pod everywhere instead of spa_pod_object. Pass result argument to spa_pod_filter to make things a little nicer.
This commit is contained in:
		
							parent
							
								
									cd5e697e9f
								
							
						
					
					
						commit
						440f681f4b
					
				
					 70 changed files with 872 additions and 858 deletions
				
			
		| 
						 | 
				
			
			@ -533,18 +533,18 @@ static void info_node(struct proxy_data *pd)
 | 
			
		|||
	fprintf(stdout, "%c\tinput params:\n", MARK_CHANGE(2));
 | 
			
		||||
	for (i = 0; i < info->n_input_params; i++) {
 | 
			
		||||
		uint32_t flags = 0;
 | 
			
		||||
		if (info->input_params[i]->body.type == t->spa_format)
 | 
			
		||||
		if (spa_pod_is_object_type(info->input_params[i], t->spa_format))
 | 
			
		||||
			flags |= SPA_DEBUG_FLAG_FORMAT;
 | 
			
		||||
		spa_debug_pod(&info->input_params[i]->pod, flags);
 | 
			
		||||
		spa_debug_pod(info->input_params[i], flags);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	fprintf(stdout, "%c\toutput ports: %u/%u\n", MARK_CHANGE(3), info->n_output_ports, info->max_output_ports);
 | 
			
		||||
	fprintf(stdout, "%c\toutput params:\n", MARK_CHANGE(4));
 | 
			
		||||
	for (i = 0; i < info->n_output_params; i++) {
 | 
			
		||||
		uint32_t flags = 0;
 | 
			
		||||
		if (info->output_params[i]->body.type == t->spa_format)
 | 
			
		||||
		if (spa_pod_is_object_type(info->output_params[i], t->spa_format))
 | 
			
		||||
			flags |= SPA_DEBUG_FLAG_FORMAT;
 | 
			
		||||
		spa_debug_pod(&info->output_params[i]->pod, flags);
 | 
			
		||||
		spa_debug_pod(info->output_params[i], flags);
 | 
			
		||||
	}
 | 
			
		||||
	fprintf(stdout, "%c\tstate: \"%s\"", MARK_CHANGE(5), pw_node_state_as_string(info->state));
 | 
			
		||||
	if (info->state == PW_NODE_STATE_ERROR && info->error)
 | 
			
		||||
| 
						 | 
				
			
			@ -587,7 +587,7 @@ static void info_link(struct proxy_data *pd)
 | 
			
		|||
	fprintf(stdout, "%c\tinput-port-id: %u\n", MARK_CHANGE(1), info->input_port_id);
 | 
			
		||||
	fprintf(stdout, "%c\tformat:\n", MARK_CHANGE(2));
 | 
			
		||||
	if (info->format)
 | 
			
		||||
		spa_debug_pod(&info->format->pod, SPA_DEBUG_FLAG_FORMAT);
 | 
			
		||||
		spa_debug_pod(info->format, SPA_DEBUG_FLAG_FORMAT);
 | 
			
		||||
	else
 | 
			
		||||
		fprintf(stdout, "\t\tnone\n");
 | 
			
		||||
	print_properties(info->props, MARK_CHANGE(3));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue