mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
jack: setting the Latency to NULL clears the latency
This commit is contained in:
parent
27f6ef119f
commit
bb10a7cb98
1 changed files with 4 additions and 4 deletions
|
|
@ -2441,9 +2441,11 @@ static int port_set_latency(struct client *c, struct port *p,
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
if (param == NULL)
|
if (param == NULL)
|
||||||
return 0;
|
info = SPA_LATENCY_INFO(SPA_DIRECTION_REVERSE(p->direction));
|
||||||
if ((res = spa_latency_parse(param, &info)) < 0)
|
else if ((res = spa_latency_parse(param, &info)) < 0)
|
||||||
return res;
|
return res;
|
||||||
|
if (info.direction == p->direction)
|
||||||
|
return 0;
|
||||||
|
|
||||||
current = &p->object->port.latency[info.direction];
|
current = &p->object->port.latency[info.direction];
|
||||||
if (spa_latency_info_compare(current, &info) == 0)
|
if (spa_latency_info_compare(current, &info) == 0)
|
||||||
|
|
@ -2457,8 +2459,6 @@ static int port_set_latency(struct client *c, struct port *p,
|
||||||
info.min_rate, info.max_rate,
|
info.min_rate, info.max_rate,
|
||||||
info.min_ns, info.max_ns);
|
info.min_ns, info.max_ns);
|
||||||
|
|
||||||
if (info.direction == p->direction)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (info.direction == SPA_DIRECTION_INPUT)
|
if (info.direction == SPA_DIRECTION_INPUT)
|
||||||
mode = JackPlaybackLatency;
|
mode = JackPlaybackLatency;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue