Protect ardour from sessions with errant capture sources stored in the
session state. git-svn-id: svn://localhost/ardour2/trunk@2177 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
722ea289a7
commit
71452634a7
@ -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<AudioFileSource> (
|
||||
SourceFactory::createWritable (DataType::AUDIO, _session, prop->value(), false, _session.frame_rate()));
|
||||
|
Loading…
Reference in New Issue
Block a user