mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: improve fix_ flags handling
PulseAudio will convert the samplespec/channelmap to a format_info and omits the input format/rate/channels when the fix flags are set. It does not use the input values at all. Do the same in pipewire-pulse, make a single format description without the requested fields. This also needs a session manager fix to make it deal with those missing fields. See #876
This commit is contained in:
		
							parent
							
								
									c0727e1efc
								
							
						
					
					
						commit
						22ec01d5c0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1563,7 +1563,7 @@ static int do_create_playback_stream(struct client *client, uint32_t command, ui
 | 
			
		|||
				n_valid_formats++;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if (n_params < MAX_FORMATS &&
 | 
			
		||||
		else if (n_params < MAX_FORMATS &&
 | 
			
		||||
		    (params[n_params] = format_build_param(&b,
 | 
			
		||||
				SPA_PARAM_EnumFormat, &ss,
 | 
			
		||||
				ss.channels > 0 ? &map : NULL)) != NULL) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue