summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2010-09-14 19:44:57 +0100
committerColin Guthrie <cguthrie@mandriva.org>2010-09-14 19:45:09 +0100
commiteef247b57e97841525a89c26f1eb35c52bf1af9e (patch)
treec68ba8feb7667d7d73856317389b47db185eead2 /src/modules
parent28f4aebfbf49a346f978b76efaac53768f5440f9 (diff)
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().
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/alsa/alsa-sink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c
index 935b1f88..112f02e7 100644
--- a/src/modules/alsa/alsa-sink.c
+++ b/src/modules/alsa/alsa-sink.c
@@ -1420,6 +1420,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);
@@ -1457,7 +1459,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)