[vlc-commits] PulseAudio: buffer metrics are buffer metrics not overall metrics
Rémi Denis-Courmont
git at videolan.org
Sat Jul 16 18:58:56 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 16 19:56:48 2011 +0300| [01d9caa19dcca42211d9763517b77b28857ca07f] | committer: Rémi Denis-Courmont
PulseAudio: buffer metrics are buffer metrics not overall metrics
This should fix buffer underflows in most cases.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01d9caa19dcca42211d9763517b77b28857ca07f
---
modules/audio_output/pulse.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index f7cb160..5906303 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -505,15 +505,13 @@ static int Open(vlc_object_t *obj)
/* Stream parameters */
const pa_stream_flags_t flags = PA_STREAM_INTERPOLATE_TIMING
| PA_STREAM_AUTO_TIMING_UPDATE
- | PA_STREAM_ADJUST_LATENCY
| PA_STREAM_START_CORKED;
const uint32_t byterate = pa_bytes_per_second(&ss);
struct pa_buffer_attr attr;
- /* no point in larger buffers on PA side than VLC */
attr.maxlength = -1;
- attr.tlength = byterate * AOUT_MAX_ADVANCE_TIME / CLOCK_FREQ;
- attr.prebuf = byterate * AOUT_MAX_PREPARE_TIME / CLOCK_FREQ;
+ attr.tlength = byterate * AOUT_MAX_PREPARE_TIME / CLOCK_FREQ;
+ attr.prebuf = -1;
attr.minreq = -1;
attr.fragsize = 0; /* not used for output */
More information about the vlc-commits
mailing list