mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioconvert: enumerate propinfo correctly
This commit is contained in:
		
							parent
							
								
									a23be2b0d8
								
							
						
					
					
						commit
						a8e9e17159
					
				
					 2 changed files with 3 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -430,22 +430,10 @@ static int impl_node_enum_params(struct spa_node *node, int seq,
 | 
			
		|||
		break;
 | 
			
		||||
 | 
			
		||||
	case SPA_PARAM_PropInfo:
 | 
			
		||||
		switch (result.index) {
 | 
			
		||||
		case 0:
 | 
			
		||||
			return spa_node_enum_params(this->channelmix, seq, id, start, num, filter);
 | 
			
		||||
		default:
 | 
			
		||||
			return 0;
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
		return spa_node_enum_params(this->channelmix, seq, id, start, num, filter);
 | 
			
		||||
 | 
			
		||||
	case SPA_PARAM_Props:
 | 
			
		||||
		switch (result.index) {
 | 
			
		||||
		case 0:
 | 
			
		||||
			return spa_node_enum_params(this->channelmix, seq, id, start, num, filter);
 | 
			
		||||
		default:
 | 
			
		||||
			return 0;
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
		return spa_node_enum_params(this->channelmix, seq, id, start, num, filter);
 | 
			
		||||
 | 
			
		||||
	default:
 | 
			
		||||
		return -ENOENT;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -478,7 +478,7 @@ static int impl_node_enum_params(struct spa_node *node, int seq,
 | 
			
		|||
				SPA_TYPE_OBJECT_PropInfo, id,
 | 
			
		||||
				SPA_PROP_INFO_id,   SPA_POD_Id(SPA_PROP_mute),
 | 
			
		||||
				SPA_PROP_INFO_name, SPA_POD_String("Mute"),
 | 
			
		||||
				SPA_PROP_INFO_type, SPA_POD_Bool(p->mute));
 | 
			
		||||
				SPA_PROP_INFO_type, SPA_POD_CHOICE_Bool(p->mute));
 | 
			
		||||
			break;
 | 
			
		||||
		default:
 | 
			
		||||
			return 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue