13
0

Possible half-fix for SMF crash.

This commit is contained in:
David Robillard 2014-12-06 10:37:08 -05:00
parent 2a28345bab
commit 2e92ae90a6

View File

@ -212,7 +212,11 @@ void
SMF::seek_to_start() const SMF::seek_to_start() const
{ {
Glib::Threads::Mutex::Lock lm (_smf_lock); Glib::Threads::Mutex::Lock lm (_smf_lock);
_smf_track->next_event_number = 1; if (_smf_track) {
_smf_track->next_event_number = 1;
} else {
cerr << "WARNING: SMF seek_to_start() with no track" << endl;
}
} }
/** Read an event from the current position in file. /** Read an event from the current position in file.