Skip to content

Commit

Permalink
Highlight unstable sources in universe view
Browse files Browse the repository at this point in the history
Expands 88aa47a with #242
  • Loading branch information
marcusbirkin authored and Tom Steer committed Jan 30, 2022
1 parent 8f01295 commit ce4054d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sacn/sacnlistener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ void sACNListener::checkSourceExpiration()
if((*it)->active.Expired() && (*it)->priority_wait.Expired())
{
(*it)->src_valid = false;
(*it)->src_stable = false;
CID::CIDIntoString((*it)->src_cid, cidstr);
emit sourceLost(*it);
m_mergeAll = true;
Expand Down Expand Up @@ -426,6 +427,7 @@ void sACNListener::processDatagram(QByteArray data, QHostAddress destination, QH
ps->lastseq = sequence;
ps->src_cid = source_cid;
ps->src_valid = true;
ps->src_stable = true;
ps->doing_dmx = (start_code == STARTCODE_DMX);
//If we are in the sampling period, let all packets through
if(m_isSampling)
Expand Down
1 change: 1 addition & 0 deletions src/sacn/streamingacn.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class sACNSource : public QObject
explicit sACNSource();
CID src_cid;
bool src_valid;
bool src_stable;
quint8 lastseq;
ttimer active; //If this expires, we haven't received any data in over a second
//The per-channel priority alternate start code policy requires we detect the source only after
Expand Down

0 comments on commit ce4054d

Please sign in to comment.