mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
test/pcm_min: Fix error messages
Fix the wrongly referred error code for error messages from snd_pcm_writei() and other calls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
9120f2de86
commit
8551fe2587
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ int main(void)
|
||||||
if (frames < 0)
|
if (frames < 0)
|
||||||
frames = snd_pcm_recover(handle, frames, 0);
|
frames = snd_pcm_recover(handle, frames, 0);
|
||||||
if (frames < 0) {
|
if (frames < 0) {
|
||||||
printf("snd_pcm_writei failed: %s\n", snd_strerror(err));
|
printf("snd_pcm_writei failed: %s\n", snd_strerror(frames));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (frames > 0 && frames < (long)sizeof(buffer))
|
if (frames > 0 && frames < (long)sizeof(buffer))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue