From 420ab8ed8941b406afec2cd33c581f257c358b29 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Mon, 18 Dec 2023 19:01:20 +0300 Subject: [PATCH] module-rtp-sap: add session number to the NTP value Dante Controller does not recognize next stream having the same NTP value. Work around that by adding current number of sessions to the time and the magic value. Co-authored-by: Dewi Seignard --- src/modules/module-rtp-sap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-rtp-sap.c b/src/modules/module-rtp-sap.c index ea24a1af6..b127ba7dc 100644 --- a/src/modules/module-rtp-sap.c +++ b/src/modules/module-rtp-sap.c @@ -695,7 +695,7 @@ static struct session *session_new_announce(struct impl *impl, struct node *node sess->announce = true; sdp->hash = pw_rand32(); - sdp->ntp = pw_properties_get_uint32(props, "rtp.ntp", (uint32_t) time(NULL) + 2208988800U); + sdp->ntp = pw_properties_get_uint32(props, "rtp.ntp", (uint32_t) time(NULL) + 2208988800U + impl->n_sessions); sess->props = props; if ((str = pw_properties_get(props, "sess.name")) == NULL)