Repository navigation
mac-videotoolbox: reject a missing pixel-buffer pool - #73
Draft
chriscoveries wants to merge 3 commits into
Draft
chriscoveries wants to merge 3 commits into
chriscoveries wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
One production-line fix on 087a25c. A NULL compression-session pixel-buffer pool now returns false from get_cached_pixel_buffer. Previously the negative status constant converted to true and vt_encode continued with its NULL pixel-buffer pointer.
Test-first history
The native test includes the actual encoder translation unit and replaces only VTCompressionSessionGetPixelBufferPool with a NULL-returning function. It calls get_cached_pixel_buffer directly; no capture device, GPU or running encoder is needed. It requires macOS frameworks and libobs to compile/link.
Failing case and assertion text:
Expected GREEN:
Evidence boundary
An isolated C execution of the complete getter with platform calls stubbed reproduced the assertion (exit 1) before this change and passed (exit 0) after it under Clang 17 ASan/UBSan. The native test target itself has not compiled or run here. Its observed native RED/GREEN results remain required.
The commit diff was checked: exactly one production line changed. The shell runner was syntax-checked. It builds only libobs and this test, OFF and ON, adds absolute rpaths and signs the test executable ad hoc before CTest. It creates no commits and uses no DYLD environment override.
Required formatting checks: blocked
Installation was attempted and failed because package retrieval was unavailable. These are outstanding checks, not passes. No Rust source, public API, workflow or upstream-connected branch changes are included.
Remaining audit
The scoped status-code/bool audit is incomplete because clang-tidy is unavailable. A code search found this occurrence; it is insufficient to certify that no other mistakes exist. Other VideoToolbox findings are kept outside this change.