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

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:10:23 2012 +0300| [b1568196ab7431076beac3385201dd2ef85fd952] | 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.
(cherry picked from commit 44bf8bbcb3fbd1d6c04c2ed8eec27f75f8faf340)

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

 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 561e6f4..ecf111e 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -822,6 +822,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