1
Fork 0

module-rtp-sap: set source-filter up

Might enhance support for some devices or otherwise useful.

Co-authored-by: Dewi Seignard <dewiweb@gmail.com>
This commit is contained in:
Dmitry Sharshakov 2023-12-18 17:06:08 +03:00 committed by Wim Taymans
parent caabc074c8
commit 57985e5aea
1 changed files with 5 additions and 0 deletions

View File

@ -582,6 +582,11 @@ static int send_sap(struct impl *impl, struct session *sess, bool bye)
sdp->payload, sdp->mime_type, sdp->rate);
}
if (is_multicast((struct sockaddr*)&sdp->dst_addr, sdp->dst_len))
spa_strbuf_append(&buf,
"a=source-filter: incl IN %s %s %s\n", dst_ip4 ? "IP4" : "IP6",
dst_addr, src_addr);
if (sdp->ptime > 0)
spa_strbuf_append(&buf,
"a=ptime:%.6g\n", sdp->ptime);