bramp / bramp/ffmpeg-cli-wrapper
Make probe result objects more immutable
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 424
- Avg merge
- 5h 35m
- Merged PRs (30d)
- 2
Description
Probe result objects (`FFmpegProbeResult`, `FFmpegStream`, `FFmpegFormat`, etc.) are currently mutable — fields are public and collections (e.g., streams list, tags map) are modifiable after construction.
We should make these objects more immutable to prevent accidental modification and improve thread safety.
This is part of the API modernization discussed in #316.
**Scope:**
- Return unmodifiable collections from getter methods (e.g., `Collections.unmodifiableList()` for streams)
- Consider making fields final where possible
- Ensure Gson deserialization still works (may need custom deserializers or builder pattern)
Depends on: #382, #383
Related: #316
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.