[vlc-commits] PulseAudio: print debug if we cannot estimate the start time

Rémi Denis-Courmont git at videolan.org
Thu Aug 9 20:21:05 CEST 2012


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug  9 21:16:27 2012 +0300| [67c40ab2f510055c91a854d691419f2943bfd20c] | committer: Rémi Denis-Courmont

PulseAudio: print debug if we cannot estimate the start time

(cherry picked from commit 9309fb85a95717a64e6ac3634ffdfbb2d56c551e)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=67c40ab2f510055c91a854d691419f2943bfd20c
---

 modules/audio_output/pulse.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index ecf111e..bc21ea1 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -262,8 +262,10 @@ static void stream_resync(audio_output_t *aout, pa_stream *s)
     }
 
     delta = vlc_pa_get_latency(aout, sys->context, s);
-    if (unlikely(delta == VLC_TS_INVALID))
+    if (unlikely(delta == VLC_TS_INVALID)) {
+        msg_Dbg(aout, "cannot synchronize start");
         delta = 0; /* screwed */
+    }
 
     delta = (sys->pts - mdate()) - delta;
     if (delta > 0) {



More information about the vlc-commits mailing list