Commit 0d5a7d4b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

PulseAudio: don't print an error when latency returns no data

This happens almost all the time, and is unfortunately normal behavior.
(cherry picked from commit e51fad4ca63581c99a4e7dd663e04e0f5be18d58)

Conflicts:

	modules/audio_output/pulse.c
parent 18f4dcd1
...@@ -103,7 +103,8 @@ static mtime_t vlc_pa_get_latency(aout_instance_t *aout, ...@@ -103,7 +103,8 @@ static mtime_t vlc_pa_get_latency(aout_instance_t *aout,
int negative; int negative;
if (pa_stream_get_latency(s, &latency, &negative)) { if (pa_stream_get_latency(s, &latency, &negative)) {
error(aout, "unknown latency", ctx); if (pa_context_errno (ctx) != PA_ERR_NODATA)
error(aout, "unknown latency", ctx);
return VLC_TS_INVALID; return VLC_TS_INVALID;
} }
return negative ? -latency : +latency; return negative ? -latency : +latency;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment