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:
f504675
)
alsa-sink: init after_avail earlier (llvm-clang-analyzer)
author
Lennart Poettering
<lennart@poettering.net>
Tue, 8 Sep 2009 21:47:23 +0000
(23:47 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 8 Sep 2009 21:47:23 +0000
(23:47 +0200)
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
63a3e90
..
883b32a
100644
(file)
--- a/
src/modules/alsa/alsa-sink.c
+++ b/
src/modules/alsa/alsa-sink.c
@@
-656,6
+656,7
@@
static int unix_write(struct userdata *u, pa_usec_t *sleep_usec, pa_bool_t polle
snd_pcm_sframes_t n;
size_t n_bytes;
int r;
+ pa_bool_t after_avail = TRUE;
if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->sink->sample_spec)) < 0)) {
@@
-710,7
+711,6
@@
static int unix_write(struct userdata *u, pa_usec_t *sleep_usec, pa_bool_t polle
for (;;) {
snd_pcm_sframes_t frames;
void *p;
- pa_bool_t after_avail = TRUE;
/* pa_log_debug("%lu frames to write", (unsigned long) frames); */