summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-02-05 18:49:32 +0100
committerRobin Gareus <robin@gareus.org>2014-02-05 18:49:32 +0100
commit7c69b0ab8228a8aeae1185ccfca7d567e5e06306 (patch)
treef44083eac1e060b91a4e10931e8aeee8b631ab44
parent4818621a2797871a10c47fc2f813e51668479fcc (diff)
add debug-message to track down missing Sources
-rw-r--r--libs/ardour/session_state.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index f3ad9d66dd..1728c11244 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -979,9 +979,19 @@ Session::state (bool full_state)
if (!fs->destructive()) {
if (fs->empty() && !fs->used()) {
+#ifndef NDEBUG
+ cerr << "DEBUG: source '"
+ << fs->name() << "' id: "
+ << fs->id() << " is marked as empty and unused and is not saved.\n";
+#endif
continue;
}
}
+#ifndef NDEBUG
+ cerr << "DEBUG: saving source '"
+ << fs->name() << "' id: "
+ << fs->id() << ".\n";
+#endif
child->add_child_nocopy (siter->second->get_state());
}