diff options
author | ben <ben@pkgsrc.org> | 2005-04-24 14:41:28 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2005-04-24 14:41:28 +0000 |
commit | 4cda63c0a789c4a3b8bb67424768b66d12281fbd (patch) | |
tree | 284cb4de401d43f5e77a7261550740a63b255213 /lang/scm | |
parent | 25013bab63dc213c00866aeeb9b7342f6ca37a2e (diff) | |
download | pkgsrc-4cda63c0a789c4a3b8bb67424768b66d12281fbd.tar.gz |
Fixes for SpiralSound/Midi.C
* test for failure of open() should be == -1, not == 0
This causes Open() to behave as intended, only creating the
m_MidiReader thread if the MIDI device is successfully opened.
* unconditionally initialize m_Mutex in Open()
* conditionally close m_MidiReader in Close(), if NULL do nothing
* make m_MidiFd and m_MidiWrFd the same file descriptor. The MIDI
device special file can only be opened once at a time.
Diffstat (limited to 'lang/scm')
0 files changed, 0 insertions, 0 deletions