[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v1.0-dev-43-g3e552bd
Colin Guthrie
gitmailer-noreply at 0pointer.de
Sat Jan 15 08:08:30 PST 2011
This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The master branch has been updated
from aefa94f05282bb1164be7d1812fff4c086d9d55b (commit)
- Log -----------------------------------------------------------------
3e552bd client: Don't update smoother while corked
-----------------------------------------------------------------------
Summary of changes:
src/pulse/stream.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
commit 3e552bdf19ac06be8377ec318ee405ea81400661
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date: Tue Jan 11 23:58:25 2011 +0530
client: Don't update smoother while corked
This prevents the smoother attached to the stream clock from being
updated while the stream is corked, which in turn ensures that once
corking is completed, pa_stream_get_time() always returns the same value
until the stream is uncorked - i.e., the clock does not advance when the
client believes that it will not.
The actual call to pa_smoother_put() happens on things like stream
suspend/unsuspend, which trigger timing updates. This changes the
smoother coefficients, which means that a call to pa_smoother_get() for
the same value of 'x' can return different values before and after a
timing update.
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index 87c24ba..addc36a 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -1733,8 +1733,8 @@ static void stream_get_timing_info_callback(pa_pdispatch *pd, uint32_t command,
i->read_index -= (int64_t) pa_memblockq_get_length(o->stream->record_memblockq);
}
- /* Update smoother */
- if (o->stream->smoother) {
+ /* Update smoother if we're not corked */
+ if (o->stream->smoother && !o->stream->corked) {
pa_usec_t u, x;
u = x = pa_rtclock_now() - i->transport_usec;
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list