From bb5b8cedd2859d638da52a47a77e3705e0abf5f0 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Sun, 7 Jun 2020 10:17:51 +0300
Subject: [PATCH] Minor changes

---
 .../rgbd-sources/include/ftl/rgbd/detail/source.hpp    | 10 ++++++++--
 components/rgbd-sources/src/source.cpp                 |  1 +
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/components/rgbd-sources/include/ftl/rgbd/detail/source.hpp b/components/rgbd-sources/include/ftl/rgbd/detail/source.hpp
index c3aca569e..3ec5903bb 100644
--- a/components/rgbd-sources/include/ftl/rgbd/detail/source.hpp
+++ b/components/rgbd-sources/include/ftl/rgbd/detail/source.hpp
@@ -42,10 +42,16 @@ class Source {
 	 */
 	virtual bool retrieve(ftl::rgbd::Frame &frame)=0;
 
+	/**
+	 * Is the source ready to capture and retrieve?
+	 */
 	virtual bool isReady() { return false; };
-	virtual void setPose(const Eigen::Matrix4d &pose) { state_.setPose(pose); };
 
-	virtual Camera parameters(ftl::codecs::Channel) { return params_; };
+	[[deprecated]] virtual void setPose(const Eigen::Matrix4d &pose) { state_.setPose(pose); };
+	[[deprecated]] virtual Camera parameters(ftl::codecs::Channel) { return params_; };
+
+	ftl::rgbd::Source *host() { return host_; }
+	ftl::rgbd::FrameState &state() { return state_; }
 
 	protected:
 	ftl::rgbd::FrameState state_;
diff --git a/components/rgbd-sources/src/source.cpp b/components/rgbd-sources/src/source.cpp
index c0c728c8e..49de15783 100644
--- a/components/rgbd-sources/src/source.cpp
+++ b/components/rgbd-sources/src/source.cpp
@@ -219,6 +219,7 @@ bool Source::dispatch(int64_t ts) {
 		callback_(ts, frames_[1]);
 		is_dispatching = false;
 	});
+	return true;
 }
 
 void Source::_swap() {
-- 
GitLab