diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-21 13:34:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-22 13:29:59 +0100 |
| commit | 3f1cffe8a0afe23577fe7351c05f1aa1dc492032 (patch) | |
| tree | 20ede20e07f489a2e50e94809486c3a75cd314ec | |
| parent | fb1bda83c7e03ec27ca5faeaf10ba2c0b8b0d3b6 (diff) | |
Use make_shared.
| -rw-r--r-- | src/lib/writer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 3061f36d4..90c5a54cf 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -435,7 +435,8 @@ try case QueueItem::Type::FULL: LOG_DEBUG_ENCODE (N_("Writer FULL-writes %1 (%2)"), qi.frame, (int) qi.eyes); if (!qi.encoded) { - qi.encoded.reset (new ArrayData(film()->j2c_path(qi.reel, qi.frame, qi.eyes, false))); + /* Get the data back from disk where we stored it temporarily */ + qi.encoded = make_shared<ArrayData>(film()->j2c_path(qi.reel, qi.frame, qi.eyes, false)); } reel.write (qi.encoded, qi.frame, qi.eyes); ++_full_written; |
