diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-01 00:30:00 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-10 21:15:37 +0200 |
| commit | a2b3ee451bdfbaa07026553daf64a378c39d90e2 (patch) | |
| tree | f8515e21389e7d563108c98efa094a783dcb3de3 | |
| parent | 710603ccccd86b2db33f76bb0b9c863df7d6a02b (diff) | |
Allow film audio analysis without a _directory.
| -rw-r--r-- | src/lib/film.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 9a8d36072..c6a6f3cce 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -296,7 +296,13 @@ Film::info_file(DCPTimePeriod period) const boost::filesystem::path Film::audio_analysis_path(shared_ptr<const Playlist> playlist) const { - auto p = dir("analysis"); + boost::filesystem::path p; + + if (_directory) { + p = dir("analysis"); + } else { + p = boost::filesystem::temp_directory_path(); + } Digester digester; for (auto content: playlist->content()) { |
