mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: fix the number of enum values
Set the right number of enum values or else we might crash. Fixes #1928
This commit is contained in:
		
							parent
							
								
									d2f676f9a6
								
							
						
					
					
						commit
						512a52d9c6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -515,7 +515,7 @@ const struct spa_pod *format_build_param(struct spa_pod_builder *b, uint32_t id,
 | 
			
		|||
			SPA_FORMAT_AUDIO_format,        SPA_POD_Id(spec->format), 0);
 | 
			
		||||
	else {
 | 
			
		||||
		spa_pod_builder_add(b,
 | 
			
		||||
			SPA_FORMAT_AUDIO_format,	SPA_POD_CHOICE_ENUM_Id(26,
 | 
			
		||||
			SPA_FORMAT_AUDIO_format,	SPA_POD_CHOICE_ENUM_Id(14,
 | 
			
		||||
								SPA_AUDIO_FORMAT_F32,
 | 
			
		||||
								SPA_AUDIO_FORMAT_F32,
 | 
			
		||||
								SPA_AUDIO_FORMAT_F32_OE,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue