mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	improve sync clock change
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@426 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									794033aa75
								
							
						
					
					
						commit
						80ae72ce45
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -414,7 +414,7 @@ static void stream_get_latency_info_callback(struct pa_pdispatch *pd, uint32_t c
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        gettimeofday(&now, NULL);
 | 
					        gettimeofday(&now, NULL);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        if (pa_timeval_cmp(&local, &remote) < 0 && pa_timeval_cmp(&remote, &now) < 0) {
 | 
					        if (pa_timeval_cmp(&local, &remote) <= 0 && pa_timeval_cmp(&remote, &now) <= 0) {
 | 
				
			||||||
            /* local and remote seem to have synchronized clocks */
 | 
					            /* local and remote seem to have synchronized clocks */
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            if (o->stream->direction == PA_STREAM_PLAYBACK)
 | 
					            if (o->stream->direction == PA_STREAM_PLAYBACK)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue