mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05: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)
|
if (fd >= 0)
|
||||||
close(fd);
|
close(fd);
|
||||||
fd = snd_open_device(filename, fmode);
|
fd = snd_open_device(filename, fmode);
|
||||||
if (fd < 0) {
|
|
||||||
SYSERR("open %s failed", filename);
|
|
||||||
return -errno;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if (fd < 0) {
|
||||||
|
SYSERR("open %s failed", filename);
|
||||||
|
return -errno;
|
||||||
|
}
|
||||||
#if 0
|
#if 0
|
||||||
/*
|
/*
|
||||||
* this is bogus, an application have to care about open filedescriptors
|
* this is bogus, an application have to care about open filedescriptors
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue