diff options
author | Carl Hetherington <carl@carlh.net> | 2010-05-09 20:48:21 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-05-09 20:48:21 +0000 |
commit | 792e3de1d4cb291a02c5c31dad54028049bafed9 (patch) | |
tree | e65183deeb01752110a59a5b834e06deef811dab /libs/ardour/location.cc | |
parent | acfc44f3889704587ff281c6348523b2811e7c2e (diff) |
Create the session range location as and when the session first gets some content. Allows both the beginning and end of the range to expand to contain the actual session contents.
git-svn-id: svn://localhost/ardour2/branches/3.0@7087 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/location.cc')
-rw-r--r-- | libs/ardour/location.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index f855cb75cf..7202e1ef03 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -548,6 +548,8 @@ Locations::clear_ranges () void Locations::add (Location *loc, bool make_current) { + assert (loc); + { Glib::Mutex::Lock lm (lock); locations.push_back (loc); |