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

[BUG] SRTO_VERSION must be READ ONLY. #2927

Open
maxsharabayko opened this issue Apr 15, 2024 · 0 comments
Open

[BUG] SRTO_VERSION must be READ ONLY. #2927

maxsharabayko opened this issue Apr 15, 2024 · 0 comments
Labels
[API] Area: Changes in SRT library API [core] Area: Changes in SRT library core Type: Bug Indicates an unexpected problem or unintended behavior
Milestone

Comments

@maxsharabayko
Copy link
Collaborator

According to the docs the SRTO_VERSION socket option is a read-only option. The code however has a setter function for it.

Code

template<>
struct CSrtConfigSetter<SRTO_VERSION>
{
    static void set(CSrtConfig& co, const void* optval, int optlen)
    {
        co.uSrtVersion = cast_optval<uint32_t>(optval, optlen);
    }
};
  • SRT Version: v1.5.3 and earlier.
@maxsharabayko maxsharabayko added Type: Bug Indicates an unexpected problem or unintended behavior [core] Area: Changes in SRT library core [API] Area: Changes in SRT library API labels Apr 15, 2024
@maxsharabayko maxsharabayko added this to the v1.5.4 milestone Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[API] Area: Changes in SRT library API [core] Area: Changes in SRT library core Type: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant