mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	small fix to deal properly with slow links
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@691 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									bf88854e60
								
							
						
					
					
						commit
						0af582a8d6
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		| 
						 | 
					@ -374,10 +374,13 @@ static void sigusr1_signal_callback(pa_mainloop_api*m, pa_signal_event *e, int s
 | 
				
			||||||
static void time_event_callback(pa_mainloop_api*m, pa_time_event *e, const struct timeval *tv, void *userdata) {
 | 
					static void time_event_callback(pa_mainloop_api*m, pa_time_event *e, const struct timeval *tv, void *userdata) {
 | 
				
			||||||
    struct timeval next;
 | 
					    struct timeval next;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    if (!stream)
 | 
					    if (stream) {
 | 
				
			||||||
        return;
 | 
					        pa_operation *o;
 | 
				
			||||||
    
 | 
					        if (!(o = pa_stream_update_timing_info(stream, stream_update_timing_callback, NULL)))
 | 
				
			||||||
    pa_operation_unref(pa_stream_update_timing_info(stream, stream_update_timing_callback, NULL));
 | 
					            fprintf(stderr, "pa_stream_update_timing_info() failed: %s\n", pa_strerror(pa_context_errno(context)));
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            pa_operation_unref(o);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pa_gettimeofday(&next);
 | 
					    pa_gettimeofday(&next);
 | 
				
			||||||
    pa_timeval_add(&next, TIME_EVENT_USEC);
 | 
					    pa_timeval_add(&next, TIME_EVENT_USEC);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue