feat(libwebrtc): implement the webrtc::AudioDecoder::ParseResult move constructor and destructor #15271
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15271"
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:28Z.
What
Implements
webrtc::AudioDecoder::ParseResult::ParseResult(ParseResult&&)and~ParseResult()in libwebrtc, which threw and were declared without parameters.The module's WebRTC revision lies between M127 and M134, as recorded in the debt file. Both are
= defaultinaudio_decoder.cc(M127, M134), and theParseResultmembers are the same at both. They are added tosrc/AudioDecoder.cpp, which already carries that file's notice and licence.WebRtcAudioDecoderParseResultis the 16-byte layout:timestampat 0,priorityat 4, and thestd::unique_ptr<EncodedAudioFrame>at 8.Destroying a result that still owns a frame would delete the guest
EncodedAudioFramethrough its virtual destructor. That throws throughNotImplemented_nid_no_patchand is recorded as debt. A null result or source throws. It removes 2 exports from the inventory.Tested
Ubuntu 26.04 (WSL2, kernel 6.18), GCC 15.2.0, Release, full build with
BUILD_TESTING=ON.guest_webrtc_audio_decodertest:std::runtime_errorfor an owning one without touching it.ctest -j16on head dcce539066: 3595/3595 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 7181480ea3, 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: 3795/3799 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.ctest -j16: 3795/3799 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)