diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc index ceee6467ab..14eef2961b 100644 --- a/libs/ardour/audio_diskstream.cc +++ b/libs/ardour/audio_diskstream.cc @@ -2255,6 +2255,12 @@ AudioDiskstream::use_pending_capture_data (XMLNode& node) continue; } + // This protects sessions from errant CapturingSources in stored sessions + struct stat sbuf; + if (stat (prop->value().c_str(), &sbuf)) { + continue; + } + try { fs = boost::dynamic_pointer_cast ( SourceFactory::createWritable (DataType::AUDIO, _session, prop->value(), false, _session.frame_rate()));