projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8adf1d5
)
optimization: Optimized pa_sink_render_full.
author
Jyri Sarha
<jyri.sarha@nokia.com>
Thu, 14 May 2009 06:42:52 +0000
(09:42 +0300)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 7 Jun 2009 00:06:44 +0000
(
02:06
+0200)
This is finally the latest version of the patch.
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
141084d
..
db9b4f3
100644
(file)
--- 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);