From 7c69b0ab8228a8aeae1185ccfca7d567e5e06306 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 5 Feb 2014 18:49:32 +0100 Subject: add debug-message to track down missing Sources --- libs/ardour/session_state.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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()); } -- cgit v1.2.3