From b691d4bf04b46059c09e144e34fc58504926ef06 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 30 Mar 2013 14:02:26 -0400 Subject: fix up some confusion with filesources' _origin and _file_is_new members. if _origin is set, it means that the file is "external" to the session (aka "embedded") and for some purposes this is more significant than _file_is_new. rename SourceFactory::createReadable() to ::createExternal() to more clearly indicate its purpose; remove never-supplied "origin" argument from SourceFactor::createWritable(). Fixes problems caused by 864ce8f0 --- gtk2_ardour/editor_audio_import.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk2_ardour/editor_audio_import.cc') diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc index 3a120c709f..31ccdb7a53 100644 --- a/gtk2_ardour/editor_audio_import.cc +++ b/gtk2_ardour/editor_audio_import.cc @@ -612,7 +612,7 @@ Editor::embed_sndfiles (vector paths, bool multifile, if ((s = _session->source_by_path_and_channel (path, n)) == 0) { source = boost::dynamic_pointer_cast ( - SourceFactory::createReadable (DataType::AUDIO, *_session, + SourceFactory::createExternal (DataType::AUDIO, *_session, path, n, (mode == ImportAsTapeTrack ? Source::Destructive -- cgit v1.2.3