mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	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
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue