[vlc-commits] PulseAudio: don't print an error when latency returns no data
Rémi Denis-Courmont
git at videolan.org
Wed Aug 10 21:44:48 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 10 22:44:16 2011 +0300| [e51fad4ca63581c99a4e7dd663e04e0f5be18d58] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e51fad4ca63581c99a4e7dd663e04e0f5be18d58
---
modules/audio_output/pulse.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index e83d77d..24c7193 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -164,7 +164,8 @@ static mtime_t vlc_pa_get_latency(audio_output_t *aout,
int 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 negative ? -latency : +latency;
More information about the vlc-commits
mailing list