mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	use pa_alsa_safe_delay() where appropriate
This commit is contained in:
		
							parent
							
								
									33601afbb1
								
							
						
					
					
						commit
						023ba8975b
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -522,7 +522,7 @@ static void update_smoother(struct userdata *u) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Let's update the time smoother */
 | 
					    /* Let's update the time smoother */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (PA_UNLIKELY((err = snd_pcm_delay(u->pcm_handle, &delay)) < 0)) {
 | 
					    if (PA_UNLIKELY((err = pa_alsa_safe_delay(u->pcm_handle, &delay, u->hwbuf_size, &u->sink->sample_spec)) < 0)) {
 | 
				
			||||||
        pa_log_warn("Failed to query DSP status data: %s", snd_strerror(err));
 | 
					        pa_log_warn("Failed to query DSP status data: %s", snd_strerror(err));
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -492,7 +492,7 @@ static void update_smoother(struct userdata *u) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Let's update the time smoother */
 | 
					    /* Let's update the time smoother */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (PA_UNLIKELY((err = snd_pcm_delay(u->pcm_handle, &delay)) < 0)) {
 | 
					    if (PA_UNLIKELY((err = pa_alsa_safe_delay(u->pcm_handle, &delay, u->hwbuf_size, &u->source->sample_spec)) < 0)) {
 | 
				
			||||||
        pa_log_warn("Failed to get delay: %s", snd_strerror(err));
 | 
					        pa_log_warn("Failed to get delay: %s", snd_strerror(err));
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue