mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-25 00:00:12 +01: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
b308c2a914
commit
84659234bf
2 changed files with 2 additions and 6 deletions
|
|
@ -222,7 +222,6 @@ 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;
|
||||
}
|
||||
|
||||
|
|
@ -446,7 +445,6 @@ static void lufs2gain_connect_port(void * Instance, unsigned long Port,
|
|||
float * DataLocation)
|
||||
{
|
||||
struct lufs2gain_impl *impl = Instance;
|
||||
if (Port < 3)
|
||||
impl->port[Port] = DataLocation;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -318,8 +318,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
Reference in a new issue