continue with MTC debugging
[ardour.git] / libs / ardour / diskstream.cc
index aaeb15a9952b3ceb6413f66d229a26f24d67948b..e2dfc271002458fab5a588dd9c508cbeeb9c6094 100644 (file)
@@ -41,6 +41,7 @@
 
 #include "ardour/ardour.h"
 #include "ardour/audioengine.h"
+#include "ardour/debug.h"
 #include "ardour/diskstream.h"
 #include "ardour/utils.h"
 #include "ardour/configuration.h"
@@ -128,8 +129,11 @@ Diskstream::init (Flag f)
 
 Diskstream::~Diskstream ()
 {
-       if (_playlist)
+       DEBUG_TRACE (DEBUG::Destruction, string_compose ("Diskstream %1 deleted\n", _name));
+
+       if (_playlist) {
                _playlist->release ();
+       }
 }
 
 void
@@ -584,6 +588,8 @@ Diskstream::check_record_status (nframes_t transport_frame, nframes_t /*nframes*
                } else {
                        last_recordable_frame += _roll_delay;
                }
+               
+               first_recordable_frame = max_frames;
        }
 
        last_possibly_recording = possibly_recording;
@@ -597,7 +603,7 @@ Diskstream::route_going_away ()
 
 void
 Diskstream::calculate_record_range(OverlapType ot, sframes_t transport_frame, nframes_t nframes,
-               nframes_t& rec_nframes, nframes_t& rec_offset)
+                                  nframes_t& rec_nframes, nframes_t& rec_offset)
 {
        switch (ot) {
        case OverlapNone: