mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 04:30:04 +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,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)
|
||||
|
|
|
|||
|
|
@ -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