mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
alsa-sink: init after_avail earlier (llvm-clang-analyzer)
This commit is contained in:
parent
f5046759cd
commit
382eced35d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
snd_pcm_sframes_t n;
|
||||||
size_t n_bytes;
|
size_t n_bytes;
|
||||||
int r;
|
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)) {
|
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 (;;) {
|
for (;;) {
|
||||||
snd_pcm_sframes_t frames;
|
snd_pcm_sframes_t frames;
|
||||||
void *p;
|
void *p;
|
||||||
pa_bool_t after_avail = TRUE;
|
|
||||||
|
|
||||||
/* pa_log_debug("%lu frames to write", (unsigned long) frames); */
|
/* pa_log_debug("%lu frames to write", (unsigned long) frames); */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue