Merge pull request #2119 from bogdad/pa-no-lanency-yet-fix

audio_pa.c: pa_delay, return "No latency data yet" on PA_ERR_NODATA
This commit is contained in:
Mike Brady
2025-12-22 10:31:19 +00:00
committed by GitHub
+1 -1
View File
@@ -648,7 +648,7 @@ int pa_delay(long *the_delay) {
pa_threaded_mainloop_lock(mainloop);
int gl = pa_stream_get_latency(stream, &latency, &negative);
pa_threaded_mainloop_unlock(mainloop);
if (gl == PA_ERR_NODATA) {
if (gl == -PA_ERR_NODATA) {
reply = -ENODEV;
} else if (gl != 0) {
reply = -EIO;