From b8321fb83d41155b297f169f205595e988ad16b3 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Wed, 9 Oct 2019 12:27:53 +0300 Subject: [PATCH] Ignore incorrect quality frames --- components/rgbd-sources/src/streamer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/rgbd-sources/src/streamer.cpp b/components/rgbd-sources/src/streamer.cpp index 4a9e5400c..e197c2bb7 100644 --- a/components/rgbd-sources/src/streamer.cpp +++ b/components/rgbd-sources/src/streamer.cpp @@ -194,7 +194,7 @@ void Streamer::add(ftl::rgbd::Group *grp) { //group_.addSource(src); src->addRawCallback([this,s](Source *src, const ftl::codecs::StreamPacket &spkt, const ftl::codecs::Packet &pkt) { - LOG(INFO) << "RAW CALLBACK"; + //LOG(INFO) << "RAW CALLBACK"; _transmitPacket(s, spkt, pkt, false); }); } @@ -541,8 +541,9 @@ void Streamer::_transmitPacket(StreamSource *src, const ftl::codecs::StreamPacke while (c != src->clients.end()) { const ftl::codecs::preset_t b = (*c).preset; if ((hqonly && b >= kQualityThreshold) || (!hqonly && b < kQualityThreshold)) { - ++c; - continue; + //++c; + LOG(INFO) << "INCORRECT QUALITY"; + //continue; } try { -- GitLab