audio_pa.c: pa_delay, return "No latency data yet" on PA_ERR_NODATA
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user