Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Issue 1628683002: Use separate rtp module lists for send and receive in PacketRouter. (Closed)

Created:
4 years, 11 months ago by stefan-webrtc
Modified:
4 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhuangzesen_agora.io, Andrew MacDonald, zhengzhonghou_agora.io, henrika_webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, andresp, peah-webrtc, minyue-webrtc, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Use separate rtp module lists for send and receive in PacketRouter. This makes it possible to handle send and receive streams with the same SSRC, which is currently the case in some peer connection tests. Also moves sending transport feedback to the pacer thread. BUG=webrtc:5263 Committed: https://crrev.com/bba9dec4d57d8f2b7a3b67a61e63cc33667a2b54 Cr-Commit-Position: refs/heads/master@{#11443}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed comments. #

Total comments: 10

Patch Set 3 : Split SetCongestionControlObjects in three. #

Patch Set 4 : Add more dchecks. #

Total comments: 21

Patch Set 5 : Comment addressed. #

Patch Set 6 : Rebase. #

Patch Set 7 : Comments addressed. #

Patch Set 8 : Moved feedback to pacer thread. #

Total comments: 4

Patch Set 9 : Comments addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -91 lines) Patch
M webrtc/audio/audio_receive_stream.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/audio/audio_receive_stream_unittest.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M webrtc/audio/audio_send_stream.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/audio/audio_send_stream_unittest.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/call/congestion_controller.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/pacing/packet_router.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -5 lines 0 comments Download
M webrtc/modules/pacing/packet_router.cc View 1 2 3 4 5 6 7 3 chunks +53 lines, -21 lines 0 comments Download
M webrtc/modules/pacing/packet_router_unittest.cc View 1 8 chunks +24 lines, -8 lines 0 comments Download
M webrtc/test/mock_voe_channel_proxy.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M webrtc/video/vie_channel.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 6 7 8 4 chunks +43 lines, -30 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 2 1 chunk +13 lines, -2 lines 0 comments Download

Messages

Total messages: 50 (11 generated)
stefan-webrtc
sprang: please review webrtc/video and webrtc/modules. solenberg: please review webrtc/voice_engine/channel.cc.
4 years, 11 months ago (2016-01-23 16:55:38 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1628683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1628683002/1
4 years, 11 months ago (2016-01-23 16:57:38 UTC) #4
tommi
saturday drive-by https://codereview.webrtc.org/1628683002/diff/1/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/1/webrtc/modules/pacing/packet_router.cc#newcode32 webrtc/modules/pacing/packet_router.cc:32: rtp_modules->erase(it); if we didn't have to search ...
4 years, 11 months ago (2016-01-23 17:23:26 UTC) #5
stefan-webrtc
https://codereview.webrtc.org/1628683002/diff/1/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/1/webrtc/modules/pacing/packet_router.cc#newcode32 webrtc/modules/pacing/packet_router.cc:32: rtp_modules->erase(it); On 2016/01/23 17:23:26, tommi-webrtc wrote: > if we ...
4 years, 11 months ago (2016-01-23 17:46:04 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-23 17:57:53 UTC) #8
tommi
https://codereview.webrtc.org/1628683002/diff/1/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/1/webrtc/modules/pacing/packet_router.cc#newcode32 webrtc/modules/pacing/packet_router.cc:32: rtp_modules->erase(it); On 2016/01/23 17:46:03, stefan-webrtc (holmer) wrote: > On ...
4 years, 11 months ago (2016-01-24 10:30:08 UTC) #10
stefan-webrtc
Addressed comments.
4 years, 11 months ago (2016-01-25 11:52:25 UTC) #11
stefan-webrtc
https://codereview.webrtc.org/1628683002/diff/1/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/1/webrtc/modules/pacing/packet_router.cc#newcode32 webrtc/modules/pacing/packet_router.cc:32: rtp_modules->erase(it); On 2016/01/24 10:30:08, tommi-webrtc wrote: > On 2016/01/23 ...
4 years, 11 months ago (2016-01-25 11:54:46 UTC) #12
the sun
https://codereview.webrtc.org/1628683002/diff/20001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/20001/webrtc/modules/pacing/packet_router.cc#newcode127 webrtc/modules/pacing/packet_router.cc:127: if (::webrtc::SendFeedback(packet, &recv_rtp_modules_)) I don't really follow this. Doesn't ...
4 years, 11 months ago (2016-01-25 15:42:01 UTC) #13
stefan-webrtc
https://codereview.webrtc.org/1628683002/diff/20001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/20001/webrtc/modules/pacing/packet_router.cc#newcode127 webrtc/modules/pacing/packet_router.cc:127: if (::webrtc::SendFeedback(packet, &recv_rtp_modules_)) On 2016/01/25 15:42:01, the sun wrote: ...
4 years, 11 months ago (2016-01-25 16:00:26 UTC) #14
the sun
https://codereview.webrtc.org/1628683002/diff/20001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/20001/webrtc/modules/pacing/packet_router.cc#newcode127 webrtc/modules/pacing/packet_router.cc:127: if (::webrtc::SendFeedback(packet, &recv_rtp_modules_)) On 2016/01/25 16:00:26, stefan-webrtc (holmer) wrote: ...
4 years, 11 months ago (2016-01-26 09:17:03 UTC) #15
stefan-webrtc
Split SetCongestionControlObjects in three.
4 years, 11 months ago (2016-01-26 10:40:18 UTC) #16
stefan-webrtc
Add more dchecks.
4 years, 11 months ago (2016-01-26 10:49:18 UTC) #17
stefan-webrtc
https://codereview.webrtc.org/1628683002/diff/20001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/20001/webrtc/modules/pacing/packet_router.cc#newcode127 webrtc/modules/pacing/packet_router.cc:127: if (::webrtc::SendFeedback(packet, &recv_rtp_modules_)) On 2016/01/26 09:17:02, the sun wrote: ...
4 years, 11 months ago (2016-01-26 10:50:38 UTC) #18
sprang_webrtc
lgtm for webrtc/video and webrtc/modules
4 years, 11 months ago (2016-01-27 11:53:38 UTC) #19
the sun
Just one more thought. Thanks for splitting on voe::Channel::SetCCObjects(), I think that turned out very ...
4 years, 10 months ago (2016-01-28 15:33:45 UTC) #20
stefan-webrtc
https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc#newcode79 webrtc/modules/pacing/packet_router.cc:79: if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) { On 2016/01/28 ...
4 years, 10 months ago (2016-01-28 15:52:00 UTC) #21
stefan-webrtc
Comment addressed.
4 years, 10 months ago (2016-01-28 15:57:31 UTC) #22
stefan-webrtc
Rebase.
4 years, 10 months ago (2016-01-28 15:59:49 UTC) #23
the sun
https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc#newcode79 webrtc/modules/pacing/packet_router.cc:79: if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) { On 2016/01/28 ...
4 years, 10 months ago (2016-01-29 10:07:07 UTC) #24
stefan-webrtc
Comments addressed.
4 years, 10 months ago (2016-01-29 10:58:09 UTC) #25
stefan-webrtc
https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc#newcode79 webrtc/modules/pacing/packet_router.cc:79: if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) { On 2016/01/29 ...
4 years, 10 months ago (2016-01-29 10:59:55 UTC) #26
the sun
https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc#newcode79 webrtc/modules/pacing/packet_router.cc:79: if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) { On 2016/01/29 ...
4 years, 10 months ago (2016-01-29 12:29:43 UTC) #27
stefan-webrtc
https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc#newcode79 webrtc/modules/pacing/packet_router.cc:79: if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) { On 2016/01/29 ...
4 years, 10 months ago (2016-01-29 13:36:33 UTC) #28
the sun
https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc#newcode79 webrtc/modules/pacing/packet_router.cc:79: if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) { On 2016/01/29 ...
4 years, 10 months ago (2016-01-29 15:38:15 UTC) #29
stefan-webrtc
https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc#newcode79 webrtc/modules/pacing/packet_router.cc:79: if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) { On 2016/01/29 ...
4 years, 10 months ago (2016-01-29 16:09:07 UTC) #30
the sun
https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc File webrtc/modules/pacing/packet_router.cc (right): https://codereview.webrtc.org/1628683002/diff/60001/webrtc/modules/pacing/packet_router.cc#newcode79 webrtc/modules/pacing/packet_router.cc:79: if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) { On 2016/01/29 ...
4 years, 10 months ago (2016-01-29 17:15:11 UTC) #31
stefan-webrtc
Moved feedback to pacer thread.
4 years, 10 months ago (2016-02-01 10:02:06 UTC) #32
stefan-webrtc
PTAL I moved SendFeedback() to the pacer thread to make sure all packets are sent ...
4 years, 10 months ago (2016-02-01 10:05:51 UTC) #33
the sun
lgtm % nits https://codereview.webrtc.org/1628683002/diff/140001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/1628683002/diff/140001/webrtc/voice_engine/channel.cc#newcode2594 webrtc/voice_engine/channel.cc:2594: RTC_DCHECK(packet_router && !packet_router_); nit: put the ...
4 years, 10 months ago (2016-02-01 10:34:18 UTC) #34
stefan-webrtc
https://codereview.webrtc.org/1628683002/diff/140001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/1628683002/diff/140001/webrtc/voice_engine/channel.cc#newcode2594 webrtc/voice_engine/channel.cc:2594: RTC_DCHECK(packet_router && !packet_router_); On 2016/02/01 10:34:18, the sun wrote: ...
4 years, 10 months ago (2016-02-01 10:36:24 UTC) #35
stefan-webrtc
Comments addressed.
4 years, 10 months ago (2016-02-01 10:36:44 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1628683002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1628683002/160001
4 years, 10 months ago (2016-02-01 10:45:04 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-01 12:21:56 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1628683002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1628683002/160001
4 years, 10 months ago (2016-02-01 12:38:39 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-01 12:40:01 UTC) #46
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/bba9dec4d57d8f2b7a3b67a61e63cc33667a2b54 Cr-Commit-Position: refs/heads/master@{#11443}
4 years, 10 months ago (2016-02-01 12:40:12 UTC) #48
the sun
On 2016/02/01 12:40:12, commit-bot: I haz the power wrote: > Patchset 9 (id:??) landed as ...
4 years, 10 months ago (2016-02-02 13:58:57 UTC) #49
stefan-webrtc
4 years, 10 months ago (2016-02-04 09:06:57 UTC) #50
Message was sent while issue was closed.
On 2016/02/02 13:58:57, the sun wrote:
> On 2016/02/01 12:40:12, commit-bot: I haz the power wrote:
> > Patchset 9 (id:??) landed as
> > https://crrev.com/bba9dec4d57d8f2b7a3b67a61e63cc33667a2b54
> > Cr-Commit-Position: refs/heads/master@{#11443}
> 
> Did you open a bug to remind about the discussed cleanup of how SendingMedia
is
> used, so we can rely on that flag instead of using two module lists in the
> PacketRouter?

Done. https://bugs.chromium.org/p/webrtc/issues/detail?id=5489

Powered by Google App Engine
This is Rietveld 408576698