mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-06 07:15:35 -04:00
module-rtp-source: Only enable IGMP recovery when using multicast
IGMP recovery makes no sense with unicast IP addresses.
This commit is contained in:
parent
3080bca85a
commit
5b86e3d418
1 changed files with 7 additions and 5 deletions
|
|
@ -699,11 +699,13 @@ static void stream_open_connection(void *data, int *result)
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((res = pw_timer_queue_add(impl->timer_queue, &impl->igmp_recovery.timer,
|
if (impl->is_multicast) {
|
||||||
NULL, impl->igmp_recovery.check_interval * SPA_NSEC_PER_SEC,
|
if ((res = pw_timer_queue_add(impl->timer_queue, &impl->igmp_recovery.timer,
|
||||||
on_igmp_recovery_timer_event, impl)) < 0) {
|
NULL, impl->igmp_recovery.check_interval * SPA_NSEC_PER_SEC,
|
||||||
pw_log_error("can't add timer: %s", spa_strerror(res));
|
on_igmp_recovery_timer_event, impl)) < 0) {
|
||||||
goto finish;
|
pw_log_error("can't add timer: %s", spa_strerror(res));
|
||||||
|
goto finish;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue