Subject: CVS commit: pkgsrc/audio/spiralsynth
To: None <pkgsrc-changes@NetBSD.org>
From: Ben Collver <ben@netbsd.org>
List: pkgsrc-changes
Date: 04/24/2005 14:41:28
Module Name:	pkgsrc
Committed By:	ben
Date:		Sun Apr 24 14:41:28 UTC 2005

Modified Files:
	pkgsrc/audio/spiralsynth: distinfo
	pkgsrc/audio/spiralsynth/patches: patch-an

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 pkgsrc/audio/spiralsynth/distinfo
cvs rdiff -r1.1 -r1.2 pkgsrc/audio/spiralsynth/patches/patch-an

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.