add debug-message to track down missing Sources
authorRobin Gareus <robin@gareus.org>
Wed, 5 Feb 2014 17:49:32 +0000 (18:49 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 5 Feb 2014 17:49:32 +0000 (18:49 +0100)
libs/ardour/session_state.cc

index f3ad9d66dd094f5a58785a06e83e71351c06b4d9..1728c112446f5479db02a047a3cf5d32f2346c9c 100644 (file)
@@ -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());
                        }