Fix stream timing clear for all GUIDs for a port

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.
This commit is contained in:
Srivats P 2023-06-26 13:03:25 +05:30
parent 5eb2ad1979
commit a2734647b6

View File

@ -100,7 +100,7 @@ void StreamTiming::clear(uint portId, uint guid)
if (!portTiming) if (!portTiming)
return; return;
if (guid == SignProtocol::kInvalidGuid) if (guid >= SignProtocol::kInvalidGuid)
portTiming->clear(); // remove ALL guids portTiming->clear(); // remove ALL guids
else else
portTiming->remove(guid); portTiming->remove(guid);