mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Fixed repeated prepare call
This commit is contained in:
parent
4ecd9eaa46
commit
a83b209df2
6 changed files with 14 additions and 5 deletions
|
|
@ -307,7 +307,7 @@ static int snd_pcm_file_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params)
|
|||
snd_pcm_file_t *file = pcm->private;
|
||||
unsigned int channel;
|
||||
snd_pcm_t *slave = file->slave;
|
||||
int err = snd_pcm_hw_params(slave, params);
|
||||
int err = _snd_pcm_hw_params(slave, params);
|
||||
if (err < 0)
|
||||
return err;
|
||||
file->buffer_bytes = snd_pcm_frames_to_bytes(slave, slave->buffer_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue