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

Issue 248493002: Cast: Deduplicate packets in paced sender and always send older packets first (Closed)

Created:
6 years, 8 months ago by hubbe
Modified:
6 years, 8 months ago
Reviewers:
miu
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Cast: Deduplicate packets in paced sender and always send older packets first Use a map sorted by <timestamp, ssrc, packet_id> to keep track of duplicate packets. This map conveniently sorts such that map.begin() is the oldest packet and should be sent first. Also make sure that we never buffer more than one RTSP packet per ssrc. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266488

Patch Set 1 #

Total comments: 8

Patch Set 2 : comments addressed #

Patch Set 3 : bugfix #

Patch Set 4 : re-upping to trick build system #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -118 lines) Patch
M media/cast/audio_receiver/audio_receiver_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/rtcp/rtcp_sender.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/cast/rtcp/rtcp_sender_unittest.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M media/cast/rtcp/rtcp_unittest.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M media/cast/transport/pacing/mock_paced_packet_sender.h View 1 chunk +3 lines, -3 lines 0 comments Download
M media/cast/transport/pacing/paced_sender.h View 1 3 chunks +22 lines, -12 lines 0 comments Download
M media/cast/transport/pacing/paced_sender.cc View 1 3 chunks +28 lines, -31 lines 0 comments Download
M media/cast/transport/pacing/paced_sender_unittest.cc View 8 chunks +38 lines, -24 lines 0 comments Download
M media/cast/transport/rtcp/rtcp_builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/cast/transport/rtp_sender/packet_storage/packet_storage.h View 2 chunks +8 lines, -4 lines 0 comments Download
M media/cast/transport/rtp_sender/packet_storage/packet_storage.cc View 1 2 6 chunks +10 lines, -10 lines 0 comments Download
M media/cast/transport/rtp_sender/packet_storage/packet_storage_unittest.cc View 3 chunks +22 lines, -8 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc View 5 chunks +17 lines, -9 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_sender.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M media/cast/video_receiver/video_receiver_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
hubbe
6 years, 8 months ago (2014-04-22 23:46:20 UTC) #1
miu
lgtm, but make sure all the data types for ssrc (and method args) are uint32 ...
6 years, 8 months ago (2014-04-24 00:09:05 UTC) #2
hubbe
https://codereview.chromium.org/248493002/diff/1/media/cast/transport/pacing/paced_sender.cc File media/cast/transport/pacing/paced_sender.cc (right): https://codereview.chromium.org/248493002/diff/1/media/cast/transport/pacing/paced_sender.cc#newcode122 media/cast/transport/pacing/paced_sender.cc:122: *packet_type = i->second.first; On 2014/04/24 00:09:06, miu wrote: > ...
6 years, 8 months ago (2014-04-24 18:36:41 UTC) #3
miu
lgtm
6 years, 8 months ago (2014-04-24 20:21:50 UTC) #4
hubbe
The CQ bit was checked by hubbe@chromium.org
6 years, 8 months ago (2014-04-25 00:58:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/248493002/40001
6 years, 8 months ago (2014-04-25 00:59:49 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 02:50:26 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-25 02:50:26 UTC) #8
hubbe
The CQ bit was checked by hubbe@chromium.org
6 years, 8 months ago (2014-04-25 05:46:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/248493002/40001
6 years, 8 months ago (2014-04-25 08:22:27 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 23:02:54 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-25 23:02:54 UTC) #12
hubbe
The CQ bit was checked by hubbe@chromium.org
6 years, 8 months ago (2014-04-26 19:17:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/248493002/40001
6 years, 8 months ago (2014-04-26 19:18:18 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 19:49:00 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-26 19:49:01 UTC) #16
hubbe
The CQ bit was checked by hubbe@chromium.org
6 years, 8 months ago (2014-04-27 01:16:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/248493002/60001
6 years, 8 months ago (2014-04-27 01:17:15 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-27 01:19:54 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_gn_rel
6 years, 8 months ago (2014-04-27 01:19:55 UTC) #20
hubbe
The CQ bit was checked by hubbe@chromium.org
6 years, 8 months ago (2014-04-27 19:35:41 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/248493002/60001
6 years, 8 months ago (2014-04-27 19:36:20 UTC) #22
commit-bot: I haz the power
6 years, 8 months ago (2014-04-28 08:15:12 UTC) #23
Message was sent while issue was closed.
Change committed as 266488

Powered by Google App Engine
This is Rietveld 408576698