diff --git a/applications/gui/src/src_window.cpp b/applications/gui/src/src_window.cpp index fbb38e1d9e33fb513610475f1869bdaf1224159a..21165e6e13b8d48dbd4f083df0a9e582f10922cc 100644 --- a/applications/gui/src/src_window.cpp +++ b/applications/gui/src/src_window.cpp @@ -246,7 +246,9 @@ void SourceWindow::_updateCameras(const vector<string> &netcams) { for (int i=0; i<strms.size(); ++i) { auto *stream = strms[i]; - stream_->add(stream); + bool isspecial = (stream->get<std::string>("uri") == screen_->root()->value("data_stream",std::string(""))); + if (isspecial) LOG(INFO) << "Adding special stream"; + stream_->add(stream, (isspecial) ? 1 : 0); LOG(INFO) << "Add Stream: " << stream->value("uri", std::string("NONE")); diff --git a/components/streams/src/receiver.cpp b/components/streams/src/receiver.cpp index 161188e9c722163e10423e583820ad1a6a945943..9a2adf7f4fe9af9a7afa0b1fc9f1e78b23edbe91 100644 --- a/components/streams/src/receiver.cpp +++ b/components/streams/src/receiver.cpp @@ -310,7 +310,7 @@ void Receiver::setStream(ftl::stream::Stream *s) { //LOG(INFO) << "PACKET: " << spkt.timestamp << ", " << (int)spkt.channel << ", " << (int)pkt.codec << ", " << (int)pkt.definition; // TODO: Allow for multiple framesets - if (spkt.frameSetID() > 0) LOG(INFO) << "Frameset " << spkt.frameSetID() << " received"; + if (spkt.frameSetID() > 0) LOG(INFO) << "Frameset " << spkt.frameSetID() << " received: " << (int)spkt.channel; if (spkt.frameSetID() > 0) return; // Too many frames, so ignore.