View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002007 | ardour | bugs | public | 2008-01-04 16:32 | 2008-01-04 17:02 |
Reporter | timblech | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Summary | 0002007: better handling of paths to embedded sources | ||||
Description | when embedding external files into a session, they are hard linked to /path/to/$session/interchange/$session/audiofiles/file.wav ... in the session file, the absolute path to this hard link is stored instead of the relative path, so when moving the session folder to another location, the stored paths become invalid. if the paths to the hard links are stored as relative paths instead of absolute ones, session folders can be moved without the problem of possibly invalid hard links ... | ||||
Tags | No tags attached. | ||||
2008-01-04 17:01
|
0001-referring-to-embedded-sources-by-relative-paths.patch (736 bytes)
diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc index 971b77a..834d273 100644 --- a/gtk2_ardour/editor_audio_import.cc +++ b/gtk2_ardour/editor_audio_import.cc @@ -545,7 +545,7 @@ Editor::embed_sndfiles (vector<Glib::ustring> paths, bool multifile, if ((s = session->source_by_path_and_channel (path, n)) == 0) { source = boost::dynamic_pointer_cast<AudioFileSource> (SourceFactory::createReadable - (*session, path, n, + (*session, path_get_basename(path), n, (mode == ImportAsTapeTrack ? AudioFileSource::Destructive : AudioFileSource::Flag (0)), |
|
i've attached a patch, that seems to work for me ... |