This is good for a few reasons: - We avoid grabing a lock twice. - We avoid an unnecessary copy. - We avoid a race where a packet could potentially be removed before the second time we call GetCodecHeader. BUG=None Review-Url: https://codereview.webrtc.org/3009833002 Cr-Commit-Position: refs/heads/master@{#19635}
Name: WebRTC URL: http://www.webrtc.org Version: 90 License: BSD License File: LICENSE Description: WebRTC provides real time voice and video processing functionality to enable the implementation of PeerConnection/MediaStream. Third party code used in this project is described in the file LICENSE_THIRD_PARTY.