diff --git a/applications/reconstruct2/src/main.cpp b/applications/reconstruct2/src/main.cpp index 3d71edd2a1d29814cb0815308b81362ec628ee31..9e8961f8b1450c8a1f0fd1df827ce9e38776e7df 100644 --- a/applications/reconstruct2/src/main.cpp +++ b/applications/reconstruct2/src/main.cpp @@ -105,14 +105,17 @@ static void run(ftl::Configurable *root) { } // Automatically add any new sources - auto nsrc_handle = feed->onNewSources([feed,group_name](const vector<string> &srcs) { + /*auto nsrc_handle = feed->onNewSources([feed,group_name](const vector<string> &srcs) { for (const auto &s : srcs) { ftl::URI uri(s); - uri.setAttribute("group", group_name); - feed->add(uri); + if (uri.hasAttribute("group")) { + if (uri.getAttribute<std::string>("group") == group_name) { + //uri.setAttribute("group", group_name); + feed->add(uri); + } } return true; - }); + });*/ auto *filter = feed->filter({Channel::Colour, Channel::Depth, Channel::AudioStereo}); @@ -129,7 +132,7 @@ static void run(ftl::Configurable *root) { } } - nsrc_handle.cancel(); + //nsrc_handle.cancel(); feed->stopRecording(); feed->removeFilter(filter);