From: Robin Gareus Date: Wed, 5 Dec 2018 15:05:56 +0000 (+0100) Subject: Skip silent sources on session-archive -- fixes #7699 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=c2652437da8786e1a1803486fddf131f20af98d3 Skip silent sources on session-archive -- fixes #7699 --- diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index e98a698175..874fa30f11 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -5259,6 +5259,9 @@ Session::archive_session (const std::string& dest, /* build a list of used names */ std::set audio_file_names; for (SourceMap::const_iterator i = sources.begin(); i != sources.end(); ++i) { + if (boost::dynamic_pointer_cast (i->second)) { + continue; + } boost::shared_ptr afs = boost::dynamic_pointer_cast (i->second); if (!afs || afs->readable_length () == 0) { continue; @@ -5275,6 +5278,9 @@ Session::archive_session (const std::string& dest, } for (SourceMap::const_iterator i = sources.begin(); i != sources.end(); ++i) { + if (boost::dynamic_pointer_cast (i->second)) { + continue; + } boost::shared_ptr afs = boost::dynamic_pointer_cast (i->second); if (!afs || afs->readable_length () == 0) { continue; @@ -5336,6 +5342,9 @@ Session::archive_session (const std::string& dest, Glib::Threads::Mutex::Lock lm (source_lock); for (SourceMap::const_iterator i = sources.begin(); i != sources.end(); ++i) { + if (boost::dynamic_pointer_cast (i->second)) { + continue; + } boost::shared_ptr afs = boost::dynamic_pointer_cast (i->second); if (!afs || afs->readable_length () == 0) { continue;