From 5b86e3d418b21bd26d9c44ca8b755129a28b53f9 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Thu, 26 Mar 2026 00:39:10 +0100 Subject: [PATCH] module-rtp-source: Only enable IGMP recovery when using multicast IGMP recovery makes no sense with unicast IP addresses. --- src/modules/module-rtp-source.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/modules/module-rtp-source.c b/src/modules/module-rtp-source.c index acbf0b9db..b0b52ed50 100644 --- a/src/modules/module-rtp-source.c +++ b/src/modules/module-rtp-source.c @@ -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: