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:
parent
caabc074c8
commit
57985e5aea
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue