mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Added asserts to show params_info bad implementation
This commit is contained in:
parent
6962a9d6ce
commit
4c2e446f74
1 changed files with 6 additions and 2 deletions
|
|
@ -544,11 +544,15 @@ static int snd_pcm_plug_params(snd_pcm_t *pcm, snd_pcm_params_t *params)
|
||||||
err = snd_pcm_plug_insert_plugins(pcm, format, slave_format);
|
err = snd_pcm_plug_insert_plugins(pcm, format, slave_format);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
slave = plug->slave;
|
|
||||||
|
|
||||||
err = snd_pcm_params(slave, params);
|
err = snd_pcm_params(plug->slave, params);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
snd_pcm_plug_clear(pcm);
|
snd_pcm_plug_clear(pcm);
|
||||||
|
|
||||||
|
assert(plug->req_slave->setup.format.sfmt == slave_format->sfmt);
|
||||||
|
assert(plug->req_slave->setup.format.channels == slave_format->channels);
|
||||||
|
assert(plug->req_slave->setup.format.rate == slave_format->rate);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue