From 4b5a0fe1e57e300d072c7ea6ac647454f5f9a90a Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Fri, 14 Aug 2020 14:54:34 +0300
Subject: [PATCH] Remove auto add net sources from reconstruct

---
 applications/reconstruct2/src/main.cpp | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/applications/reconstruct2/src/main.cpp b/applications/reconstruct2/src/main.cpp
index 3d71edd2a..9e8961f8b 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);
 
-- 
GitLab