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

Issue 2681673004: Replace RtpStreamReceiver::DeliverRtp with OnRtpPacket. (Closed)

Created:
3 years, 10 months ago by nisse-webrtc
Modified:
3 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, tterriberry_mozilla.com, the sun, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace RtpStreamReceiver::DeliverRtp with OnRtpPacket. This avoids redoing RTP header parsing already done in Call, for video. The next step is to convert other types of receive streams, i.e., audio and flexfec, to use a compatible OnRtpPacket method. We can then introduce a shared base interface, and simplify media-independent receive processing in Call. BUG=webrtc:7135 Review-Url: https://codereview.webrtc.org/2681673004 Cr-Commit-Position: refs/heads/master@{#16583} Committed: https://chromium.googlesource.com/external/webrtc/+/38cc1d6b31eff566651bc1d09b8a4e9093bcb90d

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address feedback. #

Total comments: 6

Patch Set 3 : Use GetExtension return value. #

Patch Set 4 : Change return type of OnRtpPacket from bool to void. #

Total comments: 4

Patch Set 5 : Delete redundant conditionals. #

Patch Set 6 : Move test involving incorrect h264 data. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -153 lines) Patch
M webrtc/call/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/call/call.cc View 1 2 3 4 1 chunk +15 lines, -24 lines 0 comments Download
D webrtc/call/packet_injection_tests.cc View 1 2 3 4 5 1 chunk +0 lines, -93 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 1 comment Download
M webrtc/video/rtp_stream_receiver.h View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M webrtc/video/rtp_stream_receiver.cc View 1 2 3 3 chunks +25 lines, -25 lines 0 comments Download
M webrtc/video/video_receive_stream.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (9 generated)
nisse-webrtc
This is the video rtp header parsing change, extracted from https://codereview.webrtc.org/2688473004/ One question: OnRecoveredPacket, is ...
3 years, 10 months ago (2017-02-09 10:13:25 UTC) #2
brandtr
On 2017/02/09 10:13:25, nisse-webrtc wrote: > This is the video rtp header parsing change, extracted ...
3 years, 10 months ago (2017-02-09 14:21:50 UTC) #3
brandtr
Missed to send the comments. https://codereview.webrtc.org/2681673004/diff/1/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2681673004/diff/1/webrtc/call/call.cc#newcode1217 webrtc/call/call.cc:1217: // Deliver media packets ...
3 years, 10 months ago (2017-02-09 14:22:17 UTC) #4
nisse-webrtc
On 2017/02/09 14:21:50, brandtr wrote: > Recovered packets need to be handled differently due to ...
3 years, 10 months ago (2017-02-10 09:12:30 UTC) #5
brandtr_google
On 2017/02/10 09:12:30, nisse-webrtc wrote: > On 2017/02/09 14:21:50, brandtr wrote: > > Recovered packets ...
3 years, 10 months ago (2017-02-10 09:24:14 UTC) #6
nisse-webrtc
On 2017/02/10 09:24:14, brandtr_google wrote: > I think that makes sense. To be consistent with ...
3 years, 10 months ago (2017-02-10 09:39:53 UTC) #7
nisse-webrtc
https://codereview.webrtc.org/2681673004/diff/1/webrtc/video/rtp_stream_receiver.cc File webrtc/video/rtp_stream_receiver.cc (right): https://codereview.webrtc.org/2681673004/diff/1/webrtc/video/rtp_stream_receiver.cc#newcode338 webrtc/video/rtp_stream_receiver.cc:338: ss << "Packet received on SSRC: " << header.ssrc ...
3 years, 10 months ago (2017-02-10 10:26:55 UTC) #8
brandtr
lgtm with a suggestion https://codereview.webrtc.org/2681673004/diff/20001/webrtc/video/rtp_stream_receiver.cc File webrtc/video/rtp_stream_receiver.cc (right): https://codereview.webrtc.org/2681673004/diff/20001/webrtc/video/rtp_stream_receiver.cc#newcode343 webrtc/video/rtp_stream_receiver.cc:343: packet.GetExtension<TransmissionOffset>(&time_offset); I believe you could ...
3 years, 10 months ago (2017-02-10 11:43:00 UTC) #9
nisse-webrtc
https://codereview.webrtc.org/2681673004/diff/20001/webrtc/video/rtp_stream_receiver.cc File webrtc/video/rtp_stream_receiver.cc (right): https://codereview.webrtc.org/2681673004/diff/20001/webrtc/video/rtp_stream_receiver.cc#newcode343 webrtc/video/rtp_stream_receiver.cc:343: packet.GetExtension<TransmissionOffset>(&time_offset); On 2017/02/10 11:43:00, brandtr wrote: > I believe ...
3 years, 10 months ago (2017-02-10 11:56:28 UTC) #10
nisse-webrtc
Stefan, can you have a look? https://codereview.webrtc.org/2681673004/diff/20001/webrtc/video/rtp_stream_receiver.h File webrtc/video/rtp_stream_receiver.h (right): https://codereview.webrtc.org/2681673004/diff/20001/webrtc/video/rtp_stream_receiver.h#newcode102 webrtc/video/rtp_stream_receiver.h:102: bool OnRtpPacket(const RtpPacketReceived& ...
3 years, 10 months ago (2017-02-10 12:47:52 UTC) #11
brandtr
https://codereview.webrtc.org/2681673004/diff/60001/webrtc/call/call.cc File webrtc/call/call.cc (left): https://codereview.webrtc.org/2681673004/diff/60001/webrtc/call/call.cc#oldcode1227 webrtc/call/call.cc:1227: if (status == DELIVERY_OK) Maybe check with terelius@ that ...
3 years, 10 months ago (2017-02-10 12:50:55 UTC) #12
nisse-webrtc
+terelius https://codereview.webrtc.org/2681673004/diff/60001/webrtc/call/call.cc File webrtc/call/call.cc (left): https://codereview.webrtc.org/2681673004/diff/60001/webrtc/call/call.cc#oldcode1227 webrtc/call/call.cc:1227: if (status == DELIVERY_OK) On 2017/02/10 12:50:55, brandtr ...
3 years, 10 months ago (2017-02-10 13:20:27 UTC) #14
stefan-webrtc
Nice! lgtm % nit https://codereview.webrtc.org/2681673004/diff/60001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2681673004/diff/60001/webrtc/call/call.cc#newcode1216 webrtc/call/call.cc:1216: if (parsed_packet) { Isn't this ...
3 years, 10 months ago (2017-02-10 13:22:34 UTC) #15
stefan-webrtc
Nice! lgtm % nit
3 years, 10 months ago (2017-02-10 13:22:36 UTC) #16
nisse-webrtc
https://codereview.webrtc.org/2681673004/diff/60001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2681673004/diff/60001/webrtc/call/call.cc#newcode1216 webrtc/call/call.cc:1216: if (parsed_packet) { On 2017/02/10 13:22:34, stefan-webrtc wrote: > ...
3 years, 10 months ago (2017-02-10 13:27:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2681673004/80001
3 years, 10 months ago (2017-02-10 13:29:36 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_rel/builds/22929)
3 years, 10 months ago (2017-02-10 13:49:30 UTC) #22
nisse-webrtc
Deleting the return value makes the video_engine test PacketInjectionTest.StapAPacketWithTruncatedNalUnits fails, for obvious reasons. See https://cs.chromium.org/chromium/src/third_party/webrtc/call/packet_injection_tests.cc?q=packet_inje+package:%5Echromium$&l=64 ...
3 years, 10 months ago (2017-02-10 13:58:00 UTC) #23
stefan-webrtc
On 2017/02/10 13:58:00, nisse-webrtc wrote: > Deleting the return value makes the video_engine test > ...
3 years, 10 months ago (2017-02-10 14:07:37 UTC) #24
pbos-webrtc
On 2017/02/10 14:07:37, stefan-webrtc wrote: > On 2017/02/10 13:58:00, nisse-webrtc wrote: > > Deleting the ...
3 years, 10 months ago (2017-02-10 21:19:39 UTC) #25
nisse-webrtc
Moved tests to lower layer. Attempting to land this now. https://codereview.webrtc.org/2681673004/diff/100001/webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc File webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc (right): https://codereview.webrtc.org/2681673004/diff/100001/webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc#newcode871 ...
3 years, 10 months ago (2017-02-13 12:44:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2681673004/100001
3 years, 10 months ago (2017-02-13 12:45:14 UTC) #29
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 13:59:51 UTC) #32
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/external/webrtc/+/38cc1d6b31eff566651bc1d09...

Powered by Google App Engine
This is Rietveld 408576698