From b19d0ffbc3f90d85edca7836be5b82548787c3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 22 Nov 2023 22:28:12 +0100 Subject: [PATCH] pipewire: module-roc-source: use `SPA_NSEC_PER_MSEC` instead of hard-coding --- src/modules/module-roc-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-roc-source.c b/src/modules/module-roc-source.c index 3a387fb51..96a6bf421 100644 --- a/src/modules/module-roc-source.c +++ b/src/modules/module-roc-source.c @@ -295,7 +295,7 @@ static int roc_source_setup(struct module_roc_source_data *data) * See API reference: * https://roc-streaming.org/toolkit/docs/api/reference.html */ - receiver_config.target_latency = (unsigned long long)data->sess_latency_msec * 1000000ULL; + receiver_config.target_latency = (unsigned long long)data->sess_latency_msec * SPA_NSEC_PER_MSEC; res = roc_receiver_open(data->context, &receiver_config, &data->receiver); if (res) {