mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioconvert: always allow peaks resampler
When we're using the peaks resampler, allow resampling, even when it is disabled in the config. The peaks resampler is just for GUI and would not really change the signal, so we can allow this.
This commit is contained in:
		
							parent
							
								
									ab0cee29dd
								
							
						
					
					
						commit
						b262812643
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1563,7 +1563,7 @@ static int setup_resample(struct impl *this)
 | 
				
			||||||
			out->format.info.raw.channels,
 | 
								out->format.info.raw.channels,
 | 
				
			||||||
			out->format.info.raw.rate);
 | 
								out->format.info.raw.rate);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (this->props.resample_disabled &&
 | 
						if (this->props.resample_disabled && !this->resample_peaks &&
 | 
				
			||||||
	    in->format.info.raw.rate != out->format.info.raw.rate)
 | 
						    in->format.info.raw.rate != out->format.info.raw.rate)
 | 
				
			||||||
		return -EPERM;
 | 
							return -EPERM;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue