mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-10-29 05:40:23 -04:00 
			
		
		
		
	only interpolate when the last timing info told us the stream is indeed playing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1051 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									74e958c008
								
							
						
					
					
						commit
						1710041eaf
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1254,7 +1254,7 @@ int pa_stream_get_time(pa_stream *s, pa_usec_t *r_usec) { | |||
| 
 | ||||
|         /* We just add the time that passed since the latency info was
 | ||||
|          * current */ | ||||
|         if (!s->corked) { | ||||
|         if (!s->corked && s->timing_info.playing) { | ||||
|             struct timeval now; | ||||
|             usec += pa_timeval_diff(pa_gettimeofday(&now), &s->timing_info.timestamp); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lennart Poettering
						Lennart Poettering