fixes for desirable playback when using seamless looping.
[ardour.git] / libs / ardour / audio_diskstream.cc
index d835c4a20fa89d166758fe28ee5855022cf6444d..cf3f550ac461af0ada43780bb7264e777e576ec0 100644 (file)
@@ -225,7 +225,7 @@ AudioDiskstream::get_input_sources ()
 
                connections.clear ();
 
-               if (_io->nth (n)->get_connections (connections) == 0) {
+               if ((_io->nth (n).get()) && (_io->nth (n)->get_connections (connections) == 0)) {
                        if (!(*chan)->source.name.empty()) {
                                // _source->disable_metering ();
                        }
@@ -995,6 +995,7 @@ AudioDiskstream::read (Sample* buf, Sample* mixdown_buffer, float* gain_buffer,
                if (loc && start >= loop_end) {
                        start = loop_start + ((start - loop_start) % loop_length);
                }
+
        }
 
        if (reversed) {