Peter Boström fc968a283c Fix sequence-number replay race for padding.
Prevents allocating sequence numbers for packets that go out on the
network even though sending media is disabled.

This race caused a replay of sequence numbers when GetRtpState() on a
stopped stream would not return the last sequence number sent, since the
pacer thread could request and send padding on a later sequence number
before the modules are disconnected from the pacer.

BUG=webrtc:5543
R=stefan@webrtc.org
TEST=Repeating EndToEndTest.RestartingSendStreamPreservesRtpState 1000 times under TSan.

Review URL: https://codereview.webrtc.org/1715703002 .

Cr-Commit-Position: refs/heads/master@{#11685}
2016-02-19 15:14:44 +00:00
..
2016-01-13 00:26:55 +00:00
2016-01-25 07:47:59 +00:00
2015-12-10 20:39:16 +00:00
2015-12-10 20:39:16 +00:00
2015-12-10 20:39:16 +00:00
2016-02-03 12:30:10 +00:00
2015-12-29 09:12:15 +00:00
2015-12-21 19:06:56 +00:00
2015-12-10 20:39:16 +00:00