From 5b72a9c845471cbcad15225e584947fbc18f94a9 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Tue, 11 Aug 2020 14:07:32 +0300
Subject: [PATCH] Save clipping state

---
 applications/reconstruct2/src/main.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/applications/reconstruct2/src/main.cpp b/applications/reconstruct2/src/main.cpp
index 07a0c258c..3d71edd2a 100644
--- a/applications/reconstruct2/src/main.cpp
+++ b/applications/reconstruct2/src/main.cpp
@@ -57,6 +57,10 @@ static void run(ftl::Configurable *root) {
 	feed->setPipelineCreator([](ftl::operators::Graph *pipeline) {
 		LOG(INFO) << "Using reconstruction pipeline creator";
 
+		pipeline->restore("reconstruction_pipeline", {
+			"clipping"
+		});
+
 		pipeline->append<ftl::operators::DepthChannel>("depth")->value("enabled", false);  // Ensure there is a depth channel
 		pipeline->append<ftl::operators::DisparityBilateralFilter>("bilateral_filter")->value("enabled", false);
 		pipeline->append<ftl::operators::DisparityToDepth>("calculate_depth")->value("enabled", false);
@@ -110,7 +114,7 @@ static void run(ftl::Configurable *root) {
 		return true;
 	});
 
-	auto *filter = feed->filter({Channel::Colour, Channel::Depth});
+	auto *filter = feed->filter({Channel::Colour, Channel::Depth, Channel::AudioStereo});
 	
 	//feed->lowLatencyMode();
 	feed->startStreaming(filter);
-- 
GitLab