jack: use sample rate from position

Use the sample rate from the position io area as soon as we get it.
This commit is contained in:
Wim Taymans 2020-01-09 16:06:28 +01:00
parent b99074879f
commit 9b41e4dfd9

View file

@ -1169,6 +1169,8 @@ static int client_node_set_io(void *object,
c->position = ptr;
c->driver_id = ptr ? c->position->clock.id : SPA_ID_INVALID;
update_driver_activation(c);
if (ptr)
c->sample_rate = c->position->clock.rate.denom;
break;
default:
break;