Skip to content
Snippets Groups Projects
Commit 5032044c authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Add GUI data stream option

parent a645dcc0
No related branches found
No related tags found
No related merge requests found
......@@ -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"));
......
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment