[pulseaudio-commits] src/modules
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Fri Jan 17 02:22:05 PST 2014
src/modules/module-combine-sink.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 6b82c6122bc8e6907a15036a8f16b30f380ac459
Author: Daniel Albers <daniel at lbe.rs>
Date: Thu Jan 16 10:00:42 2014 +0100
combine-sink: fix segfault
diff --git a/src/modules/module-combine-sink.c b/src/modules/module-combine-sink.c
index 9b71cfb..deabceb 100644
--- a/src/modules/module-combine-sink.c
+++ b/src/modules/module-combine-sink.c
@@ -216,11 +216,13 @@ static void adjust_rates(struct userdata *u) {
PA_IDXSET_FOREACH(o, u->outputs, idx) {
uint32_t new_rate = base_rate;
- uint32_t current_rate = o->sink_input->sample_spec.rate;
+ uint32_t current_rate;
if (!o->sink_input || !PA_SINK_IS_OPENED(pa_sink_get_state(o->sink)))
continue;
+ current_rate = o->sink_input->sample_spec.rate;
+
if (o->total_latency != target_latency)
new_rate += (uint32_t) (((double) o->total_latency - (double) target_latency) / (double) u->adjust_time * (double) new_rate);
More information about the pulseaudio-commits
mailing list