Fix 2884 and also potential crash if there are no control outs.
authorCarl Hetherington <carl@carlh.net>
Tue, 27 Oct 2009 00:53:24 +0000 (00:53 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 27 Oct 2009 00:53:24 +0000 (00:53 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5935 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session.cc

index d9c83a3ff3d071f109fcc5e5d5af7b55d5da1e57..c23712d1b99d67afada21f443b4d6d154158504a 100644 (file)
@@ -2432,13 +2432,13 @@ Session::route_solo_changed (void* /*src*/, boost::weak_ptr<Route> wpr)
 
        /* make sure master is never muted by solo */
 
-       if (route != _master_out && _master_out->solo_level() == 0 && !_master_out->soloed()) {
+       if (_master_out && route != _master_out && _master_out->solo_level() == 0 && !_master_out->soloed()) {
                _master_out->mod_solo_level (1);
        }
 
        /* ditto for control outs make sure master is never muted by solo */
 
-       if (route != _control_out && _control_out && _control_out->solo_level() == 0) {
+       if (_control_out && route != _control_out && _control_out && _control_out->solo_level() == 0) {
                _control_out->mod_solo_level (1);
        }