feat(libwebrtc): implement the webrtc::RtpExtension destructor #15264
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15264"
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-02T22:35:09Z.
What
Implements the
webrtc::RtpExtensiondestructor in libwebrtc, which threw and was declared without parameters.The module's WebRTC revision lies between M127 and M134, as recorded in the debt file.
rtp_parameters.cc(M127, M134) defines it= defaultat both, and the struct's members (std::string uri,int id,bool encrypt) are the same.src/RtpExtension.cppstarts with that file's WebRTC notice and the BSD licence.WebRtcRtpExtensionis 48 bytes:uriat 0, using the guest's 40-bytestd::stringthatGuestLocale.hppmeasured on the console (characters inline up to a capacity of 15, on the heap above), thenidat 40 andencryptat 44. Only theurineeds releasing:operator delete(_ZdlPv_nid_postfix). For blocks of 0x1000 bytes or more it frees the raw pointer stored just before the characters, exactly asGuestLocale::ReleaseStringStoragein libc does.Builds on the
GuestString.hppof theSocketAddressPR. A null extension throws. It removes 1 export from the inventory.Tested
Ubuntu 26.04 (WSL2, kernel 6.18), GCC 15.2.0, Release, full build with
BUILD_TESTING=ON.guest_webrtc_rtp_extensiontest, with its own guest heap registered throughApplicationHeapRegister_nid_no_patchto record frees:ctest -j16on head c2115e76c0: 3597/3597 pass.check_conventions.py --base upstream/mainpasses.pr_overlap.py: no open pull request implements these functions. The shared lines are the pending-export count indocs/dev/debt/libwebrtc.mdand the source, test and declaration lists inCMakeLists.txtandApi.hpp.main4f41f4c375, head b2e58aea89, to resolve the conflicts on the sharedCMakeLists.txt,Export.cppand debt-file lines; both sides are kept and the debt count is recomputed fromExport.cpp. Full build andctest -j16: 3797/3801 pass;guest_sce_net,guest_poll,guest_select_waitandguest_memoryfailed under that load, pass when run alone, andmain4f41f4c375passes all 3799 with-j16on the same machine.check_conventions.py --base upstream/mainpasses.Derived fromline forapi/rtp_parameters.ccand is restacked on the updated #15261. Full build andctest -j16: 3797/3801 pass;guest_sce_net,guest_poll,guest_select_waitandguest_memoryfail only when the suite runs as a background job here, and pass when run in the foreground on this head and onmain.check_conventions.py --base upstream/mainpasses.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)