DescriptionRemove contention between RTCP packets and encoding.
Receiving RTCP often caused the worker thread to stall for >20 ms
(>100ms observed) due to contention on VideoSender's send_crit_ (used to
protect encoding).
This change removes an unnecessary acquire of send_crit_ and caches
encoder settings in ViEEncoder instead of acquiring them through
::SendCodec() in VCM (which is blocking).
BUG=webrtc:5106
R=stefan@webrtc.org
Committed: https://crrev.com/d153a37801d9b1258ffff9f878064fa0ddfd3b0a
Cr-Commit-Position: refs/heads/master@{#10582}
Patch Set 1 #Patch Set 2 : fix bug + add EXPECT_ instead of printf error handling #Patch Set 3 : simplify fec/nack protection setting #Patch Set 4 : make sure encoder_config_ is set before adding bitrate observers, to update based on current simulc… #
Total comments: 4
Patch Set 5 : comment for SetProtectionMethod #
Total comments: 2
Patch Set 6 : added TODO in comment #
Messages
Total messages: 16 (3 generated)
|