summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_track.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-07-04 19:56:14 +0000
committerCarl Hetherington <carl@carlh.net>2012-07-04 19:56:14 +0000
commite35a84a32bedcb02396622b0b97dc0510aa11b91 (patch)
tree206264418a8608430f4ef5a8fb6463d396a8764d /libs/ardour/midi_track.cc
parentd762be4f735ef69345fb4e221d6c53e3282810b8 (diff)
Revert erroneous commit 12922 and replace with a better fix
(should fix #4947, #4963, #4987). git-svn-id: svn://localhost/ardour2/branches/3.0@12986 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_track.cc')
-rw-r--r--libs/ardour/midi_track.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc
index a8a0e218a6..1d352d622b 100644
--- a/libs/ardour/midi_track.cc
+++ b/libs/ardour/midi_track.cc
@@ -722,6 +722,13 @@ MidiTrack::act_on_mute ()
XXX we should should also stop all relevant note trackers.
*/
+ /* If we haven't got a diskstream yet, there's nothing to worry about,
+ and we can't call get_channel_mask() anyway.
+ */
+ if (!midi_diskstream()) {
+ return;
+ }
+
if (muted()) {
/* only send messages for channels we are using */