mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:35:42 +01:00
arecord: fix wrong chunk_size initialization when verbose and mmap flags are set
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
325462e80a
commit
1185611ac1
1 changed files with 2 additions and 2 deletions
|
@ -1115,9 +1115,9 @@ static void set_params(void)
|
|||
/* show mmap buffer arragment */
|
||||
if (mmap_flag && verbose) {
|
||||
const snd_pcm_channel_area_t *areas;
|
||||
snd_pcm_uframes_t offset;
|
||||
snd_pcm_uframes_t offset, size = chunk_size;
|
||||
int i;
|
||||
err = snd_pcm_mmap_begin(handle, &areas, &offset, &chunk_size);
|
||||
err = snd_pcm_mmap_begin(handle, &areas, &offset, &size);
|
||||
if (err < 0) {
|
||||
error("snd_pcm_mmap_begin problem: %s", snd_strerror(err));
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Reference in a new issue