mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
node-driver: allow fractional resync-ms
This commit is contained in:
parent
e7888d4ccc
commit
ca25066874
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ struct props {
|
|||
char clock_name[64];
|
||||
clockid_t clock_id;
|
||||
uint32_t freewheel_wait;
|
||||
uint32_t resync_ms;
|
||||
float resync_ms;
|
||||
};
|
||||
|
||||
struct impl {
|
||||
|
|
@ -631,7 +631,7 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
} else if (spa_streq(k, "freewheel.wait")) {
|
||||
this->props.freewheel_wait = atoi(s);
|
||||
} else if (spa_streq(k, "resync.ms")) {
|
||||
this->props.resync_ms = atoi(s);
|
||||
this->props.resync_ms = atof(s);
|
||||
}
|
||||
}
|
||||
if (this->props.clock_name[0] == '\0') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue