Commit 1a2cdc6d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA: fix uninitialized variable

parent 197928c5
...@@ -460,7 +460,10 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt) ...@@ -460,7 +460,10 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
channels = popcount (fmt->i_physical_channels); channels = popcount (fmt->i_physical_channels);
} }
else else
{
sys->chans_to_reorder = 0;
channels = 2; channels = 2;
}
fmt->i_original_channels = fmt->i_physical_channels; fmt->i_original_channels = fmt->i_physical_channels;
/* By default, ALSA plug will pad missing channels with zeroes, which is /* By default, ALSA plug will pad missing channels with zeroes, which is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment