mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	gst: Use gst_util_uint64_scale instead of scale_int
GST_SECOND * t.rate.num can turn into a negative gint, resulting in
assertions like:
_gst_util_uint64_scale_int: assertion 'num >= 0' failed
Just use the 64bit version instead.
(cherry picked from commit 77a5100280)
			
			
This commit is contained in:
		
							parent
							
								
									8c5dd0c9f7
								
							
						
					
					
						commit
						68a57c58bf
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -45,7 +45,7 @@ gst_pipewire_clock_get_internal_time (GstClock * clock)
 | 
				
			||||||
      t.rate.denom == 0)
 | 
					      t.rate.denom == 0)
 | 
				
			||||||
    return pclock->last_time;
 | 
					    return pclock->last_time;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  result = gst_util_uint64_scale_int (t.ticks, GST_SECOND * t.rate.num, t.rate.denom);
 | 
					  result = gst_util_uint64_scale (t.ticks, GST_SECOND * t.rate.num, t.rate.denom);
 | 
				
			||||||
  result += now - t.now;
 | 
					  result += now - t.now;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  result += pclock->time_offset;
 | 
					  result += pclock->time_offset;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue