mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-01 07:15:39 -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;
|
||||
}
|
||||
|
||||
if ((res = pw_timer_queue_add(impl->timer_queue, &impl->igmp_recovery.timer,
|
||||
NULL, impl->igmp_recovery.check_interval * SPA_NSEC_PER_SEC,
|
||||
on_igmp_recovery_timer_event, impl)) < 0) {
|
||||
pw_log_error("can't add timer: %s", spa_strerror(res));
|
||||
goto finish;
|
||||
if (impl->is_multicast) {
|
||||
if ((res = pw_timer_queue_add(impl->timer_queue, &impl->igmp_recovery.timer,
|
||||
NULL, impl->igmp_recovery.check_interval * SPA_NSEC_PER_SEC,
|
||||
on_igmp_recovery_timer_event, impl)) < 0) {
|
||||
pw_log_error("can't add timer: %s", spa_strerror(res));
|
||||
goto finish;
|
||||
}
|
||||
}
|
||||
|
||||
finish:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue