1
Fork 0

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 <dewiweb@gmail.com>
This commit is contained in:
Dmitry Sharshakov 2023-12-18 19:01:20 +03:00 committed by Wim Taymans
parent 57985e5aea
commit 420ab8ed89
1 changed files with 1 additions and 1 deletions

View File

@ -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)