summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/source.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-14 23:53:59 -0500
committerDavid Robillard <d@drobilla.net>2014-11-14 23:53:59 -0500
commitb52407043c71f9169a2a8171d07e4e1ade5f07a3 (patch)
tree4c6fc288fe3a058497f81998f02e7ecb52964a63 /libs/ardour/ardour/source.h
parent94954f852ead97bcda7afa548d543222733228ef (diff)
Fix crash when copying MIDI regions with midi-copy-is-fork is on (#6002).
Diffstat (limited to 'libs/ardour/ardour/source.h')
-rw-r--r--libs/ardour/ardour/source.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h
index afb6430242..e009e0ef51 100644
--- a/libs/ardour/ardour/source.h
+++ b/libs/ardour/ardour/source.h
@@ -109,6 +109,9 @@ class LIBARDOUR_API Source : public SessionObject
bool used() const { return use_count() > 0; }
uint32_t level() const { return _level; }
+ std::string ancestor_name() { return _ancestor_name.empty() ? name() : _ancestor_name; }
+ void set_ancestor_name(const std::string& name) { _ancestor_name = name; }
+
protected:
DataType _type;
Flag _flags;
@@ -119,6 +122,7 @@ class LIBARDOUR_API Source : public SessionObject
mutable Glib::Threads::Mutex _analysis_lock;
gint _use_count; /* atomic */
uint32_t _level; /* how deeply nested is this source w.r.t a disk file */
+ std::string _ancestor_name;
private:
void fix_writable_flags ();