- Fixed crash when trying to play a MIDI file with no notes.

SVN r3294 (trunk)
This commit is contained in:
Randy Heit 2011-09-14 23:34:28 +00:00
parent de8bf651f2
commit c12538c346

View file

@ -339,6 +339,10 @@ void MIDIStreamer::Play(bool looping, int subsong)
if (MIDI->Preprocess(this, looping))
{
StartPlayback();
if (MIDI == NULL)
{ // The MIDI file had no content and has been automatically closed.
return;
}
}
if (0 != MIDI->Resume())