mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fixed fcntl() call
This commit is contained in:
parent
a24442958b
commit
68f5980103
1 changed files with 2 additions and 2 deletions
|
|
@ -782,7 +782,7 @@ static snd_pcm_sframes_t snd_pcm_hw_mmap_commit(snd_pcm_t *pcm,
|
|||
}
|
||||
snd_pcm_mmap_appl_forward(pcm, size);
|
||||
#ifdef DEBUG_MMAP
|
||||
fprintf(stderr, "appl_forward: hw_ptr = %li, appl_ptr = %li, size = %li\n", *pcm->hw_ptr, *pcm->appl_ptr, size);
|
||||
fprintf(stderr, "appl_forward: hw_ptr = %li, appl_ptr = %li, size = %li\n", *pcm->hw.ptr, *pcm->appl.ptr, size);
|
||||
#endif
|
||||
return size;
|
||||
}
|
||||
|
|
@ -911,7 +911,7 @@ int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name,
|
|||
|
||||
}
|
||||
|
||||
if (fcntl(fd, F_GETFL, &fmode) < 0) {
|
||||
if ((fmode = fcntl(fd, F_GETFL)) < 0) {
|
||||
ret = -errno;
|
||||
close(fd);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue