rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / desktop / pulseaudio / patches / 22-module-combine-sink.c.patch
blob3854af86c607de2d714d7d4054f7b04f7729258d
1 warning: o_max could be used unintializied
3 diff --git a/src/modules/module-combine-sink.c b/src/modules/module-combine-sink.c
4 index 2ccd9eb..11a260b 100644
5 --- a/src/modules/module-combine-sink.c
6 +++ b/src/modules/module-combine-sink.c
7 @@ -257,7 +257,7 @@ static void adjust_rates(struct userdata *u) {
8 uint32_t idx;
9 unsigned n = 0;
10 pa_usec_t now;
11 - struct output *o_max;
12 + struct output *o_max = NULL;
14 pa_assert(u);
15 pa_sink_assert_ref(u->sink);
16 @@ -334,7 +334,7 @@ static void adjust_rates(struct userdata *u) {
17 /* The target selection ensures, that at least one of the
18 * sinks will use the base rate and all other sinks are set
19 * relative to it. */
20 - if (max_sink_latency > min_total_latency)
21 + if ((o_max != NULL) && (max_sink_latency > min_total_latency))
22 target_latency = o_max->total_latency;
23 else
24 target_latency = min_total_latency;