From 890e7ed614f8a7231ac92b4fbd3edeb0aef0f169 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Thu, 6 Feb 2020 14:44:10 +0200 Subject: [PATCH] No data channels in FTL recordings --- components/streams/src/filestream.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/streams/src/filestream.cpp b/components/streams/src/filestream.cpp index a9003dd04..3d96b6659 100644 --- a/components/streams/src/filestream.cpp +++ b/components/streams/src/filestream.cpp @@ -45,6 +45,10 @@ bool File::post(const ftl::codecs::StreamPacket &s, const ftl::codecs::Packet &p available(s.streamID) += s.channel; + // Discard all data channel packets for now + // TODO: Allow saving of data channels once formats have solidified. + if (static_cast<int>(s.channel) >= static_cast<int>(ftl::codecs::Channel::Data)) return true; + ftl::codecs::StreamPacket s2 = s; // Adjust timestamp relative to start of file. s2.timestamp -= timestart_; -- GitLab