mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Fix compilation with assert()
Fix the position of assert() after the variable declarations.
This commit is contained in:
parent
c31cd9a1fe
commit
69dda2f660
1 changed files with 1 additions and 1 deletions
|
|
@ -7269,10 +7269,10 @@ int snd_pcm_get_params(snd_pcm_t *pcm,
|
||||||
snd_pcm_uframes_t *buffer_size,
|
snd_pcm_uframes_t *buffer_size,
|
||||||
snd_pcm_uframes_t *period_size)
|
snd_pcm_uframes_t *period_size)
|
||||||
{
|
{
|
||||||
assert(pcm);
|
|
||||||
snd_pcm_hw_params_t *hw;
|
snd_pcm_hw_params_t *hw;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
assert(pcm);
|
||||||
snd_pcm_hw_params_alloca(&hw);
|
snd_pcm_hw_params_alloca(&hw);
|
||||||
err = snd_pcm_hw_params_current(pcm, hw);
|
err = snd_pcm_hw_params_current(pcm, hw);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue