Commit e51fad4c 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.
parent f9d72915
...@@ -164,7 +164,8 @@ static mtime_t vlc_pa_get_latency(audio_output_t *aout, ...@@ -164,7 +164,8 @@ static mtime_t vlc_pa_get_latency(audio_output_t *aout,
int negative; int negative;
if (pa_stream_get_latency(s, &latency, &negative)) { if (pa_stream_get_latency(s, &latency, &negative)) {
vlc_pa_error(aout, "unknown latency", ctx); if (pa_context_errno (ctx) != PA_ERR_NODATA)
vlc_pa_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