]> git.alsa-project.org Git - alsa-plugins.git/commit
Fix latency error check in pulse_delay() HEAD master
authorargothiel <argothiel_alsa@interia.pl>
Mon, 21 Sep 2026 00:11:52 +0000 (02:11 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 15 Oct 2026 14:32:46 +0000 (16:32 +0200)
commit811c2ce69d1265ace42a05ef045ca1b4ed72e01c
treed6d3de292c4e9107e6527186ad9dce4c23d8fb49
parent23c1d4545af2a8469c91d38375c0e3ccc0444327
Fix latency error check in pulse_delay()

There is an issue with `pulse_delay()` which calls
`pa_stream_get_latency()`. PulseAudio documents that this function
returns `-PA_ERR_NODATA` when timing information is not available yet.
The ALSA Pulse plugin compares the result against positive
`PA_ERR_NODATA`; it therefore treats that temporary condition as an
unrelated failure and returns `-EIO`.

Change `PA_ERR_NODATA` to `-PA_ERR_NODATA` in the comparison to not miss
that branch.

Fixes #65.

Closes: https://github.com/alsa-project/alsa-plugins/pull/67
Signed-off-by: argothiel <argothiel_alsa@interia.pl>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
pulse/pcm_pulse.c