Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refax around Window measurement facility #2857

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

ethouris
Copy link
Collaborator

Extracted longer and copy-paste-looking code into external functions. Potentially they can be reused in other measurement activities.

@maxsharabayko maxsharabayko added this to the v1.5.4 milestone Jan 18, 2024
@maxsharabayko maxsharabayko added Type: Maintenance Work required to maintain or clean up the code [core] Area: Changes in SRT library core labels Jan 18, 2024
for (; p != end; ++p, ++para)
{
// Throw away those that don't fit in the filter
if (*p < filter.lower || *p > filter.upper)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be identical with the previous version should be <= and >= here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right! Forgot that De Morgan's laws apply also to relative operators.

srtcore/window.cpp Outdated Show resolved Hide resolved
srtcore/utilities.h Show resolved Hide resolved
srtcore/window.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@maxsharabayko maxsharabayko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment remains unaddressed.

@ethouris
Copy link
Collaborator Author

Damn, it was the same in two different places :) I'm thinking maybe it should be also extracted...

@maxsharabayko maxsharabayko merged commit 2eb47e3 into Haivision:master Jan 19, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[core] Area: Changes in SRT library core Type: Maintenance Work required to maintain or clean up the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants