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

Don't allow to write deprecated elements #156

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

robUx4
Copy link
Contributor

@robUx4 robUx4 commented Jan 7, 2024

On top of #148, only the last 2 commits matter here.
Requires Matroska-Org/libebml#207 and Matroska-Org/libebml#210

The RenderData hack is dirty and likely bogus. This uses the write filter calls to always disable the element when trying to write it.

We actually override the CanWrite() method more often (all Matroska elements) than we override RenderData(). Maybe using an interface with multiple class inheritance could avoid this and have one implementation for all of them...

@robUx4 robUx4 added api-break breaks the API (e.g. programs using it will have to adjust their source code) abi-break breaks the ABI (e.g. programs linked against the library have to be recompiled) labels Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abi-break breaks the ABI (e.g. programs linked against the library have to be recompiled) api-break breaks the API (e.g. programs using it will have to adjust their source code)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant