From 1c88d65694d07dfbf91fe051282b3de01960e3be Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Sat, 15 Jun 2019 13:08:27 +0300 Subject: [PATCH] Use config index to load snap --- components/rgbd-sources/src/source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/rgbd-sources/src/source.cpp b/components/rgbd-sources/src/source.cpp index f050a1648..be7d56057 100644 --- a/components/rgbd-sources/src/source.cpp +++ b/components/rgbd-sources/src/source.cpp @@ -105,7 +105,7 @@ ftl::rgbd::detail::Source *Source::_createFileImpl(const ftl::URI &uri) { } else if (ext == "tar" || ext == "gz") { #ifdef HAVE_LIBARCHIVE ftl::rgbd::SnapshotReader reader(path); - return new ftl::rgbd::detail::SnapshotSource(this, reader, "0"); // TODO Get ID from config + return new ftl::rgbd::detail::SnapshotSource(this, reader, std::to_string(value("index", 0))); // TODO Get ID from config #else LOG(ERROR) << "Cannot read snapshots, libarchive not installed"; return nullptr; -- GitLab