mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fix the device-open check
Fixed the device-open check with --disable-aload.
This commit is contained in:
parent
0434c183e3
commit
b0b8957c00
1 changed files with 4 additions and 4 deletions
|
|
@ -447,12 +447,12 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode)
|
|||
if (fd >= 0)
|
||||
close(fd);
|
||||
fd = snd_open_device(filename, fmode);
|
||||
if (fd < 0) {
|
||||
SYSERR("open %s failed", filename);
|
||||
return -errno;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (fd < 0) {
|
||||
SYSERR("open %s failed", filename);
|
||||
return -errno;
|
||||
}
|
||||
#if 0
|
||||
/*
|
||||
* this is bogus, an application have to care about open filedescriptors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue