13
0

Revert "Allow loading sessions with missing external files #7067"

This reverts commit feed9648e1.
This commit is contained in:
Robin Gareus 2016-10-11 22:54:21 +02:00
parent feed9648e1
commit 6c933c7789
3 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ protected:
SampleFormat samp_format, HeaderFormat hdr_format);
/** Constructor to be called for existing in-session files */
AudioFileSource (Session&, const XMLNode&, bool must_exist = true, bool optional_origin = false);
AudioFileSource (Session&, const XMLNode&, bool must_exist = true);
/** Constructor to be called for crash recovery. Final argument is not
* used but exists to differentiate from the external-to-session

View File

@ -45,7 +45,7 @@ protected:
SilentFileSource (Session& s, const XMLNode& x, framecnt_t len, float srate)
: Source (s, x)
, AudioFileSource (s, x, false, true)
, AudioFileSource (s, x, false)
, _sample_rate(srate)
{
_length = len;

View File

@ -135,7 +135,7 @@ AudioFileSource::AudioFileSource (Session& s, const string& path, Source::Flag f
* is an absolute path after ::set_state(), then the file is external to the
* session.
*/
AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exist, bool optional_origin)
AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exist)
: Source (s, node)
, AudioSource (s, node)
, FileSource (s, node, must_exist)
@ -146,7 +146,7 @@ AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exi
if (Glib::path_is_absolute (_origin)) {
_path = _origin;
must_exist = !optional_origin;
must_exist = true;
}
if (init (_path, must_exist)) {