mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: set latency variable correctly
This commit is contained in:
		
							parent
							
								
									f07aa6a9fd
								
							
						
					
					
						commit
						e142e40cfe
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -175,7 +175,7 @@ static void patch_buffer_attr(pa_stream *s, pa_buffer_attr *attr, pa_stream_flag
 | 
			
		|||
		if (str) {
 | 
			
		||||
			int num, denom;
 | 
			
		||||
			if (sscanf(str, "%u/%u", &num, &denom) == 2 && denom != 0) {
 | 
			
		||||
				snprintf(buf, sizeof(buf)-1, PRIu64, num * PA_MSEC_PER_SEC / denom);
 | 
			
		||||
				snprintf(buf, sizeof(buf)-1, "%"PRIu64, num * PA_MSEC_PER_SEC / denom);
 | 
			
		||||
				e = buf;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue