From 97996a6e20dc8a3b9597c91675959c2e099efe21 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Sun, 4 May 2025 23:11:31 +0200 Subject: [PATCH] module-rtp-sap: Take RTP dest port into account when matching sessions This is important if several sessions use the same multicast IP address. --- src/modules/module-rtp-sap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/module-rtp-sap.c b/src/modules/module-rtp-sap.c index 9c6135701..79af04f2e 100644 --- a/src/modules/module-rtp-sap.c +++ b/src/modules/module-rtp-sap.c @@ -935,6 +935,7 @@ static struct session *session_find(struct impl *impl, const struct sdp_info *in struct session *sess; spa_list_for_each(sess, &impl->sessions, link) { if (info->hash == sess->info.hash && + info->dst_port == sess->info.dst_port && spa_streq(info->origin, sess->info.origin)) return sess; }