Skip to content

Don't allow to write deprecated elements#156

Draft
robUx4 wants to merge 6 commits intoMatroska-Org:masterfrom
robUx4:no_deprecated
Draft

Don't allow to write deprecated elements#156
robUx4 wants to merge 6 commits intoMatroska-Org:masterfrom
robUx4:no_deprecated

Conversation

@robUx4
Copy link
Copy Markdown
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