[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.19-240-gd9b5bbc
Lennart Poettering
gitmailer-noreply at 0pointer.de
Tue Nov 10 19:24:18 PST 2009
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 f3866f263539578517ef36a670e04ca48fa2d1d3 (commit)
- Log -----------------------------------------------------------------
d9b5bbc core: adjust volume only when there is actually a memory block
-----------------------------------------------------------------------
Summary of changes:
src/pulsecore/sink-input.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
-----------------------------------------------------------------------
commit d9b5bbca017a8e578434e62ab6daeec24f2c11e1
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 11 04:18:10 2009 +0100
core: adjust volume only when there is actually a memory block
Fixes an assert that is hit in somne niche cases:
https://bugzilla.redhat.com/show_bug.cgi?id=533482
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index 1af2823..aa84ccb 100644
--- a/src/pulsecore/sink-input.c
+++ b/src/pulsecore/sink-input.c
@@ -717,14 +717,15 @@ void pa_sink_input_peek(pa_sink_input *i, size_t slength /* in sink frames */, p
pa_memchunk rchunk;
pa_resampler_run(i->thread_info.resampler, &wchunk, &rchunk);
- if (nvfs) {
- pa_memchunk_make_writable(&rchunk, 0);
- pa_volume_memchunk(&rchunk, &i->sink->sample_spec, &i->volume_factor_sink);
- }
-
/* pa_log_debug("pushing %lu", (unsigned long) rchunk.length); */
if (rchunk.memblock) {
+
+ if (nvfs) {
+ pa_memchunk_make_writable(&rchunk, 0);
+ pa_volume_memchunk(&rchunk, &i->sink->sample_spec, &i->volume_factor_sink);
+ }
+
pa_memblockq_push_align(i->thread_info.render_memblockq, &rchunk);
pa_memblock_unref(rchunk.memblock);
}
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list