summaryrefslogtreecommitdiff
path: root/libs/ardour/region_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/region_factory.cc')
-rw-r--r--libs/ardour/region_factory.cc27
1 files changed, 15 insertions, 12 deletions
diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc
index 52b656e79f..1242ec8aba 100644
--- a/libs/ardour/region_factory.cc
+++ b/libs/ardour/region_factory.cc
@@ -28,6 +28,7 @@
#include "ardour/audioregion.h"
#include "ardour/audiosource.h"
+#include "ardour/boost_debug.h"
#include "ardour/midi_region.h"
#include "ardour/midi_source.h"
#include "ardour/region.h"
@@ -36,6 +37,8 @@
#include "pbd/i18n.h"
+// #define BOOST_DEBUG_REGION
+
using namespace ARDOUR;
using namespace PBD;
using namespace std;
@@ -98,8 +101,8 @@ RegionFactory::create (boost::shared_ptr<const Region> region, bool announce, bo
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -139,8 +142,8 @@ RegionFactory::create (boost::shared_ptr<Region> region, const PropertyList& pli
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -180,8 +183,8 @@ RegionFactory::create (boost::shared_ptr<Region> region, MusicSample offset, con
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -221,8 +224,8 @@ RegionFactory::create (boost::shared_ptr<Region> region, const SourceList& srcs,
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -265,8 +268,8 @@ RegionFactory::create (const SourceList& srcs, const PropertyList& plist, bool a
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}
@@ -310,8 +313,8 @@ RegionFactory::create (SourceList& srcs, const XMLNode& node)
}
}
-#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
- // boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
+#if defined BOOST_SP_ENABLE_DEBUG_HOOKS && defined BOOST_DEBUG_REGION
+ boost_debug_shared_ptr_mark_interesting (ret.get(), "Region");
#endif
return ret;
}