audio_pa.c: pa_delay, return "No latency data yet" on PA_ERR_NODATA

This commit is contained in:
Vladimir
2025-12-20 21:21:13 +01:00
parent 5f2c7161fd
commit c97efa1248
+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;