- Fixed Linux compilation errors. (I'm not too sure what I was supposed to do with PrepTimidity() though.)

SVN r2882 (trunk)
This commit is contained in:
Braden Obrzut 2010-10-02 16:49:44 +00:00
parent d3ca1fddcc
commit f26e65e550

View file

@ -429,7 +429,7 @@ bool TimidityPPMIDIDevice::LaunchTimidity ()
} }
return false; return false;
#else #else
if (WavePipe[0] != -1 && WavePipe[1] == -1 && m_Stream != NULL) if (WavePipe[0] != -1 && WavePipe[1] == -1 && Stream != NULL)
{ {
// Timidity was previously launched, so the write end of the pipe // Timidity was previously launched, so the write end of the pipe
// is closed, and the read end is still open. Close the pipe // is closed, and the read end is still open. Close the pipe
@ -437,9 +437,9 @@ bool TimidityPPMIDIDevice::LaunchTimidity ()
close (WavePipe[0]); close (WavePipe[0]);
WavePipe[0] = -1; WavePipe[0] = -1;
delete m_Stream; delete Stream;
m_Stream = NULL; Stream = NULL;
PrepTimidity (); Open (NULL, NULL);
} }
int forkres; int forkres;
@ -597,7 +597,7 @@ bool TimidityPPMIDIDevice::IsOpen() const
{ {
if (waitpid (ChildProcess, NULL, WNOHANG) == ChildProcess) if (waitpid (ChildProcess, NULL, WNOHANG) == ChildProcess)
{ {
ChildProcess = -1; const_cast<TimidityPPMIDIDevice *>(this)->ChildProcess = -1;
#endif #endif
return false; return false;
} }