mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-14 20:02:38 +00:00
stream: set latency variable correctly
This commit is contained in:
parent
f07aa6a9fd
commit
e142e40cfe
|
@ -175,7 +175,7 @@ static void patch_buffer_attr(pa_stream *s, pa_buffer_attr *attr, pa_stream_flag
|
|||
if (str) {
|
||||
int num, denom;
|
||||
if (sscanf(str, "%u/%u", &num, &denom) == 2 && denom != 0) {
|
||||
snprintf(buf, sizeof(buf)-1, PRIu64, num * PA_MSEC_PER_SEC / denom);
|
||||
snprintf(buf, sizeof(buf)-1, "%"PRIu64, num * PA_MSEC_PER_SEC / denom);
|
||||
e = buf;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue