summaryrefslogtreecommitdiff
path: root/libs/ardour/source.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-05-12 10:12:41 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-06-29 14:18:12 -0400
commitc4e31356170835bf3c4231b906db128187f471d8 (patch)
tree57c4a7c2153d1aa02837d749de86f5228ccef116 /libs/ardour/source.cc
parentd0b5f87fba822f8b447b386f428dd997a49885bf (diff)
Tracks does not (want to) support destructive tracks
Diffstat (limited to 'libs/ardour/source.cc')
-rw-r--r--libs/ardour/source.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc
index 03039fea5b..ef0538b4d7 100644
--- a/libs/ardour/source.cc
+++ b/libs/ardour/source.cc
@@ -35,6 +35,7 @@
#include "pbd/enumwriter.h"
#include "ardour/debug.h"
+#include "ardour/profile.h"
#include "ardour/session.h"
#include "ardour/source.h"
#include "ardour/transient_detector.h"
@@ -144,6 +145,11 @@ Source::set_state (const XMLNode& node, int version)
_flags = Flag (_flags | Destructive);
}
+ if (Profile->get_trx() && (_flags & Destructive)) {
+ error << string_compose (_("%1: this session uses destructive tracks, which are not supported"), PROGRAM_NAME) << endmsg;
+ return -1;
+ }
+
if (version < 3000) {
/* a source with an XML node must necessarily already exist,
and therefore cannot be removable/writable etc. etc.; 2.X