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  8adf1d5eea0750cea52a5ce8fb75d4331bf8a7cc (commit)

- Log -----------------------------------------------------------------
8eaea3a optimization: Optimized pa_sink_render_full.
-----------------------------------------------------------------------

Summary of changes:
 src/pulsecore/sink.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------

commit 8eaea3aa6471b7d0e78d110752847db5b213c85a
Author: Jyri Sarha <[email protected]>
Date:   Thu May 14 09:42:52 2009 +0300

    optimization: Optimized pa_sink_render_full.
    
    This is finally the latest version of the patch.

diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 141084d..db9b4f3 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -1025,14 +1025,13 @@ void pa_sink_render_full(pa_sink *s, size_t length, 
pa_memchunk *result) {
        pa_memchunk chunk;
        size_t l, d;
        pa_memchunk_make_writable(result, length);
-       result->length = length;
 
        l = length - result->length;
        d = result->index + result->length;
        while (l > 0) {
            chunk = *result;
-           chunk.index += d;
-           chunk.length -= d - result->index;
+           chunk.index = d;
+           chunk.length = l;
 
            pa_sink_render_into(s, &chunk);
 

-- 
hooks/post-receive
PulseAudio Sound Server
_______________________________________________
pulseaudio-commits mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-commits

Reply via email to