summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-03 09:56:12 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-03 09:56:37 +0200
commit2d76a00e209159a285da48551408988f1de24968 (patch)
treefab96423d8c67cbaaa73e0c97e1dfe5567b84769
parent505f4c14b6836ebe9b154a6f057ffffd3d05c0cd (diff)
stream: fix printf modifier
-rw-r--r--pipewire-pulseaudio/src/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pipewire-pulseaudio/src/stream.c b/pipewire-pulseaudio/src/stream.c
index fa334186..6306d4ad 100644
--- a/pipewire-pulseaudio/src/stream.c
+++ b/pipewire-pulseaudio/src/stream.c
@@ -189,7 +189,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, "%lu", num * PA_MSEC_PER_SEC / denom);
+ snprintf(buf, sizeof(buf)-1, PRIu64, num * PA_MSEC_PER_SEC / denom);
e = buf;
}
}