projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a28345
)
Possible half-fix for SMF crash.
author
David Robillard
<d@drobilla.net>
Sat, 6 Dec 2014 15:37:08 +0000
(10:37 -0500)
committer
David Robillard
<d@drobilla.net>
Sat, 6 Dec 2014 15:37:08 +0000
(10:37 -0500)
libs/evoral/src/SMF.cpp
patch
|
blob
|
history
diff --git
a/libs/evoral/src/SMF.cpp
b/libs/evoral/src/SMF.cpp
index 047763723e213d6297405d1c99d809179260c37f..b75141d7fb9ce1f58a3f2d823bbecd1e33625fc4 100644
(file)
--- a/
libs/evoral/src/SMF.cpp
+++ b/
libs/evoral/src/SMF.cpp
@@
-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.