alsa: Only set the 'first' flag to false when we actually call snd_pcm_start()

Previously, if work_done was false, we could conceivably not call snd_pcm_start().
This commit is contained in:
Colin Guthrie 2010-09-14 19:44:57 +01:00
parent f97faae006
commit 2ecd764662

View file

@ -1417,6 +1417,8 @@ static void thread_func(void *userdata) {
snd_pcm_start(u->pcm_handle);
pa_smoother_resume(u->smoother, pa_rtclock_now(), TRUE);
u->first = FALSE;
}
update_smoother(u);
@ -1454,7 +1456,6 @@ static void thread_func(void *userdata) {
pa_rtpoll_set_timer_relative(u->rtpoll, PA_MIN(sleep_usec, cusec));
}
u->first = FALSE;
u->after_rewind = FALSE;
} else if (u->use_tsched)