mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: Improve PropInfo fields
The PropInfo either has a registered id (and then also a name from the type-info) or a custom name as a string. In all cases, the description contains a free form text that clarifies the property. Use the description in the stream controls name.
This commit is contained in:
		
							parent
							
								
									4ae94a6ca6
								
							
						
					
					
						commit
						2f5bba112f
					
				
					 19 changed files with 43 additions and 43 deletions
				
			
		| 
						 | 
				
			
			@ -212,21 +212,21 @@ static int impl_node_enum_params(void *object, int seq,
 | 
			
		|||
			param = spa_pod_builder_add_object(&b,
 | 
			
		||||
				SPA_TYPE_OBJECT_PropInfo, id,
 | 
			
		||||
				SPA_PROP_INFO_id,   SPA_POD_Id(SPA_PROP_minLatency),
 | 
			
		||||
				SPA_PROP_INFO_name, SPA_POD_String("The minimum latency"),
 | 
			
		||||
				SPA_PROP_INFO_description, SPA_POD_String("The minimum latency"),
 | 
			
		||||
				SPA_PROP_INFO_type, SPA_POD_CHOICE_RANGE_Int(p->min_latency, 1, INT32_MAX));
 | 
			
		||||
			break;
 | 
			
		||||
		case 1:
 | 
			
		||||
			param = spa_pod_builder_add_object(&b,
 | 
			
		||||
				SPA_TYPE_OBJECT_PropInfo, id,
 | 
			
		||||
				SPA_PROP_INFO_id,   SPA_POD_Id(SPA_PROP_maxLatency),
 | 
			
		||||
				SPA_PROP_INFO_name, SPA_POD_String("The maximum latency"),
 | 
			
		||||
				SPA_PROP_INFO_description, SPA_POD_String("The maximum latency"),
 | 
			
		||||
				SPA_PROP_INFO_type, SPA_POD_CHOICE_RANGE_Int(p->max_latency, 1, INT32_MAX));
 | 
			
		||||
			break;
 | 
			
		||||
		case 2:
 | 
			
		||||
			param = spa_pod_builder_add_object(&b,
 | 
			
		||||
				SPA_TYPE_OBJECT_PropInfo, id,
 | 
			
		||||
				SPA_PROP_INFO_id,   SPA_POD_Id(SPA_PROP_latencyOffsetNsec),
 | 
			
		||||
				SPA_PROP_INFO_name, SPA_POD_String("Latency offset (ns)"),
 | 
			
		||||
				SPA_PROP_INFO_description, SPA_POD_String("Latency offset (ns)"),
 | 
			
		||||
				SPA_PROP_INFO_type, SPA_POD_CHOICE_RANGE_Long(0LL, INT64_MIN, INT64_MAX));
 | 
			
		||||
			break;
 | 
			
		||||
		default:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue