summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-22 21:17:39 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-22 21:17:39 +0000
commit7b8a76de25e55a585b0f4375c155aa0c2ad98da2 (patch)
treeaf299b6c00035c92d70517a4537f34757d80d0dd /libs
parent7ad096c86f35757cea5d37b5d2e1e43dd026f895 (diff)
Oops. Fix previous.
git-svn-id: svn://localhost/ardour2/branches/3.0@8931 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/route.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index f8c61353b7..dba16131f9 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -3170,7 +3170,12 @@ Route::MuteControllable::set_value (double val)
double
Route::MuteControllable::get_value () const
{
- return route.muted() ? 1.0f : 0.0f;
+ boost::shared_ptr<Route> r = _route.lock ();
+ if (!r) {
+ return 0;
+ }
+
+ return r->muted() ? 1.0f : 0.0f;
}
void