mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	filter-graph: remove port check
Remove the port number check, we never call this with an invalid port number and the check was wrong for the sofa_plugin. Fixes #4700
This commit is contained in:
		
							parent
							
								
									a0eb12e4be
								
							
						
					
					
						commit
						9b316f6deb
					
				
					 2 changed files with 2 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -222,8 +222,7 @@ static void ebur128_connect_port(void * Instance, unsigned long Port,
 | 
			
		|||
                        float * DataLocation)
 | 
			
		||||
{
 | 
			
		||||
	struct ebur128_impl *impl = Instance;
 | 
			
		||||
	if (Port < PORT_MAX)
 | 
			
		||||
		impl->port[Port] = DataLocation;
 | 
			
		||||
	impl->port[Port] = DataLocation;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void ebur128_cleanup(void * Instance)
 | 
			
		||||
| 
						 | 
				
			
			@ -446,8 +445,7 @@ static void lufs2gain_connect_port(void * Instance, unsigned long Port,
 | 
			
		|||
                        float * DataLocation)
 | 
			
		||||
{
 | 
			
		||||
	struct lufs2gain_impl *impl = Instance;
 | 
			
		||||
	if (Port < 3)
 | 
			
		||||
		impl->port[Port] = DataLocation;
 | 
			
		||||
	impl->port[Port] = DataLocation;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void lufs2gain_run(void * Instance, unsigned long SampleCount)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -319,8 +319,6 @@ static void spatializer_connect_port(void * Instance, unsigned long Port,
 | 
			
		|||
                        float * DataLocation)
 | 
			
		||||
{
 | 
			
		||||
	struct spatializer_impl *impl = Instance;
 | 
			
		||||
	if (Port > 5)
 | 
			
		||||
		return;
 | 
			
		||||
	impl->port[Port] = DataLocation;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue