feat(libwebrtc): implement VideoFrame::Builder::set_video_frame_buffer and VideoFrame::video_frame_buffer #17497
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17497"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-08T20:05:23Z.
What
Implements two libwebrtc exports that threw, both the
scoped_refptr<VideoFrameBuffer>copy ofapi/video/video_frame.cc(identical at M127 and M134, as isscoped_refptr's assignment):VideoFrame::Builder::set_video_frame_bufferadds a reference to the new buffer, then releases the old one and stores it;VideoFrame::video_frame_buffer() constadds a reference to the buffer it returns through the hidden result pointer. Both callAddRefandReleasethrough the buffer's own vtable (slots 0 and 1 ofRefCountInterface). The unmeasured parts are indocs/dev/debt/libwebrtc.md.Tested
Linux:
suite.py feat/libwebrtc-video-frame-buffer-referenceat7ef8b642df: CTest 4581/4581 passed; conventions passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)