projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f97faae
)
alsa: Only set the 'first' flag to false when we actually call snd_pcm_start()
author
Colin Guthrie
<cguthrie@mandriva.org>
Tue, 14 Sep 2010 18:44:57 +0000
(19:44 +0100)
committer
Colin Guthrie
<cguthrie@mandriva.org>
Tue, 14 Sep 2010 18:44:57 +0000
(19:44 +0100)
Previously, if work_done was false, we could conceivably not call snd_pcm_start().
src/modules/alsa/alsa-sink.c
patch
|
blob
|
history
diff --git
a/src/modules/alsa/alsa-sink.c
b/src/modules/alsa/alsa-sink.c
index
e62dcc0
..
1108a79
100644
(file)
--- a/
src/modules/alsa/alsa-sink.c
+++ b/
src/modules/alsa/alsa-sink.c
@@
-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)