From 57a89655214c115c1a695c353e70010c4c53cd82 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Wed, 30 Oct 2019 10:31:39 +0200 Subject: [PATCH] Dont allow empty gpumats --- .../rgbd-sources/src/sources/stereovideo/stereovideo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp b/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp index 17ee40f9a..f8e08a9f6 100644 --- a/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp +++ b/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp @@ -244,7 +244,8 @@ bool StereoVideoSource::compute(int n, int b) { } else { //left.download(rgb_, stream_); stream_.waitForCompletion(); // TODO:(Nick) Move to getFrames - LOG(INFO) << "NO SECOND CHANNEL: " << (bool)depth_.empty(); + //LOG(INFO) << "NO SECOND CHANNEL: " << (bool)depth_.empty(); + depth_.create(left.size(), left.type()); host_->notify(timestamp_, left, depth_); } -- GitLab