mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pipewire: module-roc-source: use SPA_NSEC_PER_MSEC instead of hard-coding
This commit is contained in:
parent
b5e898ee83
commit
b19d0ffbc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue