pipewire: module-roc-source: use SPA_NSEC_PER_MSEC instead of hard-coding

This commit is contained in:
Barnabás Pőcze 2023-11-22 22:28:12 +01:00
parent b5e898ee83
commit b19d0ffbc3

View file

@ -295,7 +295,7 @@ static int roc_source_setup(struct module_roc_source_data *data)
* See API reference: * See API reference:
* https://roc-streaming.org/toolkit/docs/api/reference.html * 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); res = roc_receiver_open(data->context, &receiver_config, &data->receiver);
if (res) { if (res) {