[vlc-commits] PulseAudio: mark stream non-monotonic

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


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug  9 21:10:23 2012 +0300| [44bf8bbcb3fbd1d6c04c2ed8eec27f75f8faf340] | committer: Rémi Denis-Courmont

PulseAudio: mark stream non-monotonic

In some cases, that gets more accurate timing meaurements faster.

VLC does not use pa_stream_get_time(), so there is certainly no need
for pa_stream_get_time() to return monotonic values.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=44bf8bbcb3fbd1d6c04c2ed8eec27f75f8faf340
---

 modules/audio_output/pulse.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 14b4b24..325070f 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -820,6 +820,7 @@ static int Open(vlc_object_t *obj)
     /* Stream parameters */
     const pa_stream_flags_t flags = PA_STREAM_START_CORKED
                                   //| PA_STREAM_INTERPOLATE_TIMING
+                                    | PA_STREAM_NOT_MONOTONIC
                                   | PA_STREAM_AUTO_TIMING_UPDATE
                                   | PA_STREAM_VARIABLE_RATE;
 



More information about the vlc-commits mailing list