mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
impl-port: remove useless code
We already check for 0 as the undefined value in the combine function.
This commit is contained in:
parent
9262f576d5
commit
07f8a0d275
1 changed files with 0 additions and 10 deletions
|
|
@ -1322,9 +1322,6 @@ int pw_impl_port_recalc_latency(struct pw_impl_port *port)
|
||||||
struct pw_impl_port *other;
|
struct pw_impl_port *other;
|
||||||
|
|
||||||
latency = SPA_LATENCY_INFO(SPA_DIRECTION_REVERSE(port->direction));
|
latency = SPA_LATENCY_INFO(SPA_DIRECTION_REVERSE(port->direction));
|
||||||
latency.min_quantum = FLT_MAX;
|
|
||||||
latency.min_rate = INT32_MAX;
|
|
||||||
latency.min_ns = INT64_MAX;
|
|
||||||
|
|
||||||
if (port->direction == PW_DIRECTION_OUTPUT) {
|
if (port->direction == PW_DIRECTION_OUTPUT) {
|
||||||
spa_list_for_each(l, &port->links, output_link) {
|
spa_list_for_each(l, &port->links, output_link) {
|
||||||
|
|
@ -1347,13 +1344,6 @@ int pw_impl_port_recalc_latency(struct pw_impl_port *port)
|
||||||
latency.min_ns, latency.max_ns);
|
latency.min_ns, latency.max_ns);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (latency.min_quantum == FLT_MAX)
|
|
||||||
latency.min_quantum = 0.0f;
|
|
||||||
if (latency.min_rate == INT32_MAX)
|
|
||||||
latency.min_rate = 0U;
|
|
||||||
if (latency.min_ns == INT64_MAX)
|
|
||||||
latency.min_ns = 0UL;
|
|
||||||
|
|
||||||
port_set_latency(port, &latency);
|
port_set_latency(port, &latency);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue