From eab90d602948592635a778978b3b6ca3f61b73e2 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sun, 17 Dec 2023 08:45:40 +0300 Subject: [PATCH] module-rtp-sap: allow overriding NTP value It seems like most devices use value 0 there, so for further enhanced compatibility it's preferred to do so as well --- 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 b965bacca..7ace9d1f5 100644 --- a/src/modules/module-rtp-sap.c +++ b/src/modules/module-rtp-sap.c @@ -690,7 +690,7 @@ static struct session *session_new_announce(struct impl *impl, struct node *node sess->announce = true; sdp->hash = pw_rand32(); - sdp->ntp = (uint32_t) time(NULL) + 2208988800U; + sdp->ntp = pw_properties_get_uint32(props, "rtp.ntp", (uint32_t) time(NULL) + 2208988800U); sess->props = props; if ((str = pw_properties_get(props, "sess.name")) == NULL)