diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-28 00:49:04 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-28 00:49:04 +0000 |
commit | 51693a3a5835a7c2deb16242d14d73fbb7881382 (patch) | |
tree | 2c576e25b2f1b945be6bdcf30cd9245b27d93d90 /libs/ardour/audiofilesource.cc | |
parent | c5db9a21b990b55e1b515a65a99bdc504d0af89c (diff) |
tracing and small fixes to improve object destruction pathways
git-svn-id: svn://localhost/ardour2/branches/3.0@6195 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audiofilesource.cc')
-rw-r--r-- | libs/ardour/audiofilesource.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/ardour/audiofilesource.cc b/libs/ardour/audiofilesource.cc index e9eb3641da..f2f09b71fc 100644 --- a/libs/ardour/audiofilesource.cc +++ b/libs/ardour/audiofilesource.cc @@ -45,6 +45,7 @@ #include <glibmm/thread.h> #include "ardour/audiofilesource.h" +#include "ardour/debug.h" #include "ardour/sndfile_helpers.h" #include "ardour/sndfilesource.h" #include "ardour/session.h" @@ -99,7 +100,6 @@ AudioFileSource::AudioFileSource (Session& s, const ustring& path, bool embedded if (init (path, true)) { throw failed_constructor (); } - cerr << "AFS1 created, " << path << endl; } /** Constructor used for new internal-to-session files. */ @@ -114,7 +114,6 @@ AudioFileSource::AudioFileSource (Session& s, const ustring& path, bool embedded if (init (path, false)) { throw failed_constructor (); } - cerr << "AFS2 created, " << path << endl; } /** Constructor used for existing internal-to-session files. File must exist. */ @@ -130,14 +129,12 @@ AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exi if (init (_name, must_exist)) { throw failed_constructor (); } - cerr << "AFS3 created, " << path() << endl; } AudioFileSource::~AudioFileSource () { - cerr << "AFS " << _name << " destructor, path = " << path() << endl; + DEBUG_TRACE (DEBUG::Destruction, string_compose ("AudioFileSource destructor %1, removable? %2\n", _path, removable())); if (removable()) { - cerr << "\tremoving file\n"; unlink (_path.c_str()); unlink (peakpath.c_str()); } |