Fix extplug->channels initialization

Fixed the missing initialization of extplug->channels in hw_params.
This commit is contained in:
Takashi Iwai 2006-03-21 10:30:44 +00:00
parent 7e6c920836
commit 24a3cfc236

View file

@ -300,6 +300,8 @@ static int snd_pcm_extplug_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params
ext->data->rate = slave->rate;
INTERNAL(snd_pcm_hw_params_get_format)(params, &ext->data->format);
INTERNAL(snd_pcm_hw_params_get_subformat)(params, &ext->data->subformat);
INTERNAL(snd_pcm_hw_params_get_channels)(params, &ext->data->channels);
if (ext->data->callback->hw_params) {
err = ext->data->callback->hw_params(ext->data, params);
if (err < 0)