mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-30 10:27:44 +01:00
Possible half-fix for SMF crash.
This commit is contained in:
parent
2a28345bab
commit
2e92ae90a6
1 changed files with 5 additions and 1 deletions
|
|
@ -212,7 +212,11 @@ void
|
|||
SMF::seek_to_start() const
|
||||
{
|
||||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue