Fix crash at track adding: don't play instrumentTracks when instrument is null

This commit is contained in:
Vesa
2014-08-16 09:36:29 +03:00
parent f2eca0aaa3
commit 7a7c7c9467

View File

@@ -593,7 +593,7 @@ void InstrumentTrack::removeMidiPortNode( DataFile & _dataFile )
bool InstrumentTrack::play( const MidiTime & _start, const fpp_t _frames,
const f_cnt_t _offset, int _tco_num )
{
if( ! tryLock() )
if( ! tryLock() || ! m_instrument )
{
return false;
}