mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	rtp-sdp: format ptime in the C locale
Don't place locale dependent strings in the SDP. Fixes #4615
This commit is contained in:
		
							parent
							
								
									21e9fdf8ad
								
							
						
					
					
						commit
						74035f0a34
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -660,7 +660,7 @@ static void update_ts_refclk(struct impl *impl)
 | 
			
		|||
 | 
			
		||||
static int make_sdp(struct impl *impl, struct session *sess, char *buffer, size_t buffer_size)
 | 
			
		||||
{
 | 
			
		||||
	char src_addr[64], dst_addr[64], dst_ttl[8];
 | 
			
		||||
	char src_addr[64], dst_addr[64], dst_ttl[8], ptime[32];
 | 
			
		||||
	struct sdp_info *sdp = &sess->info;
 | 
			
		||||
	bool src_ip4, dst_ip4;
 | 
			
		||||
	bool multicast;
 | 
			
		||||
| 
						 | 
				
			
			@ -738,7 +738,7 @@ static int make_sdp(struct impl *impl, struct session *sess, char *buffer, size_
 | 
			
		|||
 | 
			
		||||
	if (sdp->ptime > 0)
 | 
			
		||||
		spa_strbuf_append(&buf,
 | 
			
		||||
			"a=ptime:%.6g\n", sdp->ptime);
 | 
			
		||||
			"a=ptime:%s\n", spa_dtoa(ptime, sizeof(ptime), sdp->ptime));
 | 
			
		||||
 | 
			
		||||
	if (sdp->framecount > 0)
 | 
			
		||||
		spa_strbuf_append(&buf,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue