fix(libwebrtc): cast away the vtable's const before calling the RtpPacketReceived deleting destructor #25116
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25116"
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 Gonic0 on 2026-11-21T16:59:46Z.
What
mainstopped buildinglibwebrtcon macOS after8503c82d26(feat(libwebrtc): implement the RtpPacketReceived constructors and destructor). Apple clang rejects thereinterpret_castfromconst void*to a function pointer in theRtpPacketReceiveddestructor:This casts away the vtable slot's
constfirst, asAudioDecoder.cpp,RtcStatsReport.cppandRtcCertificate.cppalready do. The behaviour is unchanged on every platform.Tested
macOS 27.3, Apple M5 Pro, Apple clang, x86-64 Release under Rosetta 2,
BUILD_TESTING=ON. Tree:maina3b6b62649with this change, plus #17425 and #11049, whichmainstill needs to linklibcurl.prxand the audio libraries on macOS (#24117).mainead4c70f10); with it the full build completes.ctest --test-dir build -R webrtc -j6: 117 of 117 pass, includingguest_webrtc_rtp_packet_received.tools/check_conventions.pypasses;tools/pr_overlap.py --branchfinds no overlap with open pull requests.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)🤖 Generated with Claude Code
Pull request closed