mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-05 06:46:28 -04:00
raop: avoid division by 0
This commit is contained in:
parent
2993bf1722
commit
a4d7607a88
1 changed files with 1 additions and 1 deletions
|
|
@ -1903,7 +1903,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
copy_props(impl, props, "sess.ts-direct");
|
||||
|
||||
impl->mtu = SPA_MIN(pw_properties_get_uint32(impl->props, "net.mtu", 1448), 9000u);
|
||||
impl->sync_period = impl->rate / (impl->mtu / impl->stride);
|
||||
impl->sync_period = impl->rate * impl->stride / impl->mtu;
|
||||
impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
|
||||
if (impl->core == NULL) {
|
||||
str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue