Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Fix stream timing clear for all GUIDs for a port
Browse files Browse the repository at this point in the history
AbstractPort uses a value of UINT_MAX to signify 'all guids', but
StreamTiming uses 'invalid guid' value which are NOT the same value. But
UINT_MAX is guaranteed to be greater than invalid GUID - so instead of
equality we check for greater than comparison.
  • Loading branch information
pstavirs committed Jun 26, 2023
1 parent 5eb2ad1 commit a273464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/streamtiming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void StreamTiming::clear(uint portId, uint guid)
if (!portTiming)
return;

if (guid == SignProtocol::kInvalidGuid)
if (guid >= SignProtocol::kInvalidGuid)
portTiming->clear(); // remove ALL guids
else
portTiming->remove(guid);
Expand Down

0 comments on commit a273464

Please sign in to comment.