use pa_alsa_safe_delay() where appropriate

This commit is contained in:
Lennart Poettering 2009-02-23 22:56:34 +01:00
parent 33601afbb1
commit 023ba8975b
2 changed files with 2 additions and 2 deletions

View file

@ -492,7 +492,7 @@ static void update_smoother(struct userdata *u) {
/* 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));
return;
}