mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
jack: always check srate/bufsize from data thread
To ensure processing is always happening with the values emited in the callback.
This commit is contained in:
parent
cb1c259bc5
commit
2e17cc7901
1 changed files with 4 additions and 4 deletions
|
|
@ -1498,6 +1498,10 @@ do_update_driver_activation(struct spa_loop *loop,
|
||||||
struct client *c = user_data;
|
struct client *c = user_data;
|
||||||
c->rt.position = c->position;
|
c->rt.position = c->position;
|
||||||
c->rt.driver_activation = c->driver_activation;
|
c->rt.driver_activation = c->driver_activation;
|
||||||
|
if (c->position) {
|
||||||
|
check_sample_rate(c, c->position);
|
||||||
|
check_buffer_frames(c, c->position);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1567,10 +1571,6 @@ static int client_node_set_io(void *object,
|
||||||
c->position = ptr;
|
c->position = ptr;
|
||||||
c->driver_id = ptr ? c->position->clock.id : SPA_ID_INVALID;
|
c->driver_id = ptr ? c->position->clock.id : SPA_ID_INVALID;
|
||||||
update_driver_activation(c);
|
update_driver_activation(c);
|
||||||
if (ptr) {
|
|
||||||
check_sample_rate(c, c->position);
|
|
||||||
check_buffer_frames(c, c->position);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue