mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
impl-port: improve Latency param check
We can use the latency param when we have a Writable entry in the param_info.
This commit is contained in:
parent
743eaf4aa2
commit
7f912a1cff
1 changed files with 2 additions and 1 deletions
|
|
@ -376,7 +376,6 @@ static int process_latency_param(void *data, int seq,
|
|||
if (latency.direction == this->direction)
|
||||
pw_impl_port_emit_latency_changed(this);
|
||||
|
||||
this->have_latency_param = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -423,6 +422,8 @@ static void update_info(struct pw_impl_port *port, const struct spa_port_info *i
|
|||
|
||||
switch (id) {
|
||||
case SPA_PARAM_Latency:
|
||||
port->have_latency_param =
|
||||
SPA_FLAG_IS_SET(info->params[i].flags, SPA_PARAM_INFO_WRITE);
|
||||
if (port->node != NULL)
|
||||
pw_impl_port_for_each_param(port, 0, id, 0, UINT32_MAX,
|
||||
NULL, process_latency_param, port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue